if wait() gets interruped, don't increase the number of workers to start

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1301 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.12
Jan Kneschke 17 years ago
parent e931d4f27f
commit 9076cbdf5c

@ -948,8 +948,9 @@ int main (int argc, char **argv) {
}
} else {
int status;
wait(&status);
num_childs++;
/* ignore EINTR */
if (-1 != wait(&status)) num_childs++;
}
}
if (srv_shutdown) {

Loading…
Cancel
Save