X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fthreads.c;h=21f585cdae75671707f0adcb33684f7ac30cb3cf;hp=18641b5456491ce4201069b5cd55a64e6403b19c;hb=3334c6073b74551d18176701092179deb5b9ef06;hpb=53d8e6f8d1f18b0085dcfd46d1fc8640381513bc diff --git a/citadel/threads.c b/citadel/threads.c index 18641b545..21f585cda 100644 --- a/citadel/threads.c +++ b/citadel/threads.c @@ -167,6 +167,10 @@ void go_threading(void) CtdlShutdownServiceHooks(); /* close all listener sockets to prevent new connections */ PerformSessionHooks(EVT_SHUTDOWN); /* run any registered shutdown hooks */ + /* We used to wait for all threads to exit. Fuck that. The only thing important is that the databases are + * cleanly unmounted. After that, exit the whole program. + */ +#if 0 int countdown = 30; while ( (num_workers > 0) && (countdown-- > 0)) { syslog(LOG_DEBUG, "Waiting %d seconds for %d worker threads to exit", @@ -174,4 +178,6 @@ void go_threading(void) ); usleep(1000000); } +#endif + }