X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fserver_main.c;h=4c69e608342f9c9c3af4aa9cdc653f77f279b3fa;hb=0f911dcac6e52ee8f86a5429f61fc63d3e293a4a;hp=318f72e2b5f149041b5bb42ae125f23d8a98f5b0;hpb=7c7698836856107cf05908ddb4314a82506ddd76;p=citadel.git diff --git a/citadel/server_main.c b/citadel/server_main.c index 318f72e2b..4c69e6083 100644 --- a/citadel/server_main.c +++ b/citadel/server_main.c @@ -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();