X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fthreads.c;h=a9fce4eb471282f59e5cbaf1ff5831496e9c3237;hp=59aae25d27f88bd44e3d1749ed75875ce3967421;hb=e1270db35d02e0c12db7417c4912451b0c664132;hpb=eef0aa8dfaf6928394a5465603d5390895a7e743 diff --git a/citadel/threads.c b/citadel/threads.c index 59aae25d2..a9fce4eb4 100644 --- a/citadel/threads.c +++ b/citadel/threads.c @@ -207,7 +207,7 @@ void go_threading(void) if ((active_workers == num_workers) && (num_workers < 256)) { CtdlThreadCreate(worker_thread); } - sleep(1); + usleep(1000); } /* When we get to this point we are getting ready to shut down our Citadel server */ @@ -221,6 +221,6 @@ void go_threading(void) syslog(LOG_DEBUG, "Waiting %d seconds for %d worker threads to exit", countdown, num_workers ); - sleep(1); + usleep(1000); } }