aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--slowcgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slowcgi.c b/slowcgi.c
index 2ced6d1..87ae5b2 100644
--- a/slowcgi.c
+++ b/slowcgi.c
@@ -556,7 +556,7 @@ slowcgi_sig_handler(int sig, short event, void *arg)
switch (sig) {
case SIGCHLD:
- while ((pid = waitpid(WAIT_ANY, &status, WNOHANG)) > 0) {
+ while ((pid = waitpid(-1, &status, WNOHANG)) > 0) {
c = NULL;
SLIST_FOREACH(ncs, &p->requests, entry)
if (ncs->request->script_pid == pid) {