if ((active_workers == num_workers) && (num_workers < 256)) {
CtdlThreadCreate(worker_thread);
}
- usleep(1000);
+ usleep(1000000);
}
/* When we get to this point we are getting ready to shut down our Citadel server */
ShutDownEventQueues();
}
while (!EVQShutDown)
- usleep(1000);
+ usleep(1000000);
terminate_all_sessions(); /* close all client sockets */
syslog(LOG_DEBUG, "Waiting %d seconds for %d worker threads to exit",
countdown, num_workers
);
- usleep(1000);
+ usleep(1000000);
}
}