* Changed 'number of worker threads' from a sysconfig.h #define to an actual
[citadel.git] / citadel / sysdep.c
index 9afd43fec24072d8196f4c969f9d04662e6a2fca..333319b9cfcec0c262cee6bd957ccd1027276761 100644 (file)
@@ -813,7 +813,7 @@ int main(int argc, char **argv)
        /*
         * Now create a bunch of worker threads.
         */
-       for (i=0; i<(NUM_WORKER_THREADS-1); ++i) {
+       for (i=0; i<(config.c_worker_threads-1); ++i) {
                pthread_attr_init(&attr);
                        pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
                if (pthread_create(&HousekeepingThread, &attr,