Project

General

Profile

Bug #1823 ยป lighttpd-r2357-fix-cond.diff

peto, 2008-11-18 03:41

View differences:

server.c (working copy)
static void *joblist_queue_thread(void *_data) {
server *srv = _data;
g_mutex_lock(joblist_queue_mutex);
while (!srv_shutdown) {
GTimeVal ts;
connection *con;
......
/* wait for getting signaled */
if (srv_shutdown) {
g_mutex_unlock(joblist_queue_mutex);
break;
}
......
/* interrupt the poll() */
if (killme) write(srv->wakeup_pipe[1], " ", 1);
}
g_mutex_unlock(joblist_queue_mutex);
}
g_mutex_unlock(joblist_queue_mutex);
return NULL;
}
#endif
    (1-1/1)