}
end_critical_section(S_SESSION_TABLE);
- if (bind_me) {
- goto SKIP_SELECT;
+ if (bind_me) { // don't search for a session to bind to.
+ goto SKIP_SELECT; // we already found one.
}
// If we got this far, it means that there are no sessions
}
// If control reaches this point, the server is shutting down
- while(1) {
- sleep(1); // wait to die
- }
- //pthread_mutex_lock(&ThreadCountMutex);
- //--num_workers;
- //pthread_mutex_unlock(&ThreadCountMutex);
- //return(NULL);
+ return(NULL);
}