threads are using signals and the GC code is #ifdef if available.
[citadel.git] / citadel / server_main.c
index 66093245cb933332acf6f1a2c30c67a9ec41960c..62a06ccd118f0941f4a7235148310de6af69b998 100644 (file)
@@ -99,6 +99,13 @@ int main(int argc, char **argv)
        eCrashParameters params;
 //     eCrashSymbolTable symbol_table;
 #endif
+
+#ifdef HAVE_GC
+       GC_INIT();
+       GC_find_leak = 1;
+#endif
+
+
        /* initialise semaphores here. Patch by Matt and davew
         * its called here as they are needed by CtdlLogPrintf for thread safety
         */