]> code.citadel.org Git - citadel.git/blobdiff - webcit/webserver.c
* Original startup thread becomes a worker thread after initialization.
[citadel.git] / webcit / webserver.c
index 199379dc567273d733da9d50d5502408ac31f659..824d812a8ed2f4328a68574e4163349361808f41 100644 (file)
@@ -311,8 +311,8 @@ int main(int argc, char **argv)
                spawn_another_worker_thread();
        }
 
-       /* now the original thread can go away. */
-       pthread_exit(NULL);
+       /* now the original thread becomes another worker */
+       worker_entry();
        return 0;
 }