diff --git a/src/main.c b/src/main.c index 93c30f4..f69f0cc 100644 --- a/src/main.c +++ b/src/main.c @@ -71,6 +71,7 @@ #include #include #include +#include /* swp */ #define _KCMS_H_ @@ -231,6 +232,14 @@ main (int argc, char **argv, char **envp) /* Since we're doing lots of TCP, just ignore SIGPIPE altogether. */ signal (SIGPIPE, SIG_IGN); +#ifdef M_CHECK_ACTION + /* some code here has the habit of freeing pointers twice. The glibc + catches this and causes the program to abort. In order to make the + code somehow work, we turn aborting the program off. */ + + mallopt(M_CHECK_ACTION,5); +#endif + InitChildProcessor(); MoCCIPreInitialize();