struct timeval tv;
int force_purge = 0;
+ ++num_workers;
+
while (!CtdlThreadCheckStop()) {
/* make doubly sure we're not holding any stale db handles
SKIP_SELECT:
/* We're bound to a session */
+ ++active_workers;
if (bind_me != NULL) {
become_session(bind_me);
dead_session_purge(force_purge);
do_housekeeping();
+ --active_workers;
}
/* If control reaches this point, the server is shutting down */
return(NULL);