#include "snprintf.h"
#endif
-int running_as_daemon = 0;
-
/*
* Here's where it all begins.
*/
#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();
}
end_critical_section(S_WORKER_LIST);
- /* Create the indexer thread. */
+ /* Create the maintenance threads. */
create_maintenance_threads();
/* This thread is now useless. It can't be turned into a worker