Patches from Matt with slight mod from me to do without strlen. Also modified lprintf...
[citadel.git] / citadel / server_main.c
index 318f72e2b5f149041b5bb42ae125f23d8a98f5b0..4c69e608342f9c9c3af4aa9cdc653f77f279b3fa 100644 (file)
@@ -87,6 +87,11 @@ int main(int argc, char **argv)
 #ifdef HAVE_RUN_DIR
        struct stat filestats;
 #endif
+
+       /* initialise semaphores here. Patch by Matt and davew
+        * its called here as they are needed by lprintf for thread safety
+        */
+       InitialiseSemaphores();
        
        /* initialize the master context */
        InitializeMasterCC();