aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-05-24 13:57:11 +0200
committerWynn Wolf Arbor2020-05-24 14:05:54 +0200
commit96f21314dcd959c2f1b388776ebbefb63049c233 (patch)
tree0206edbd75d4fb53f14a70a5c8fd705a6cf5aa23
parentefb214f552afc854a9eacdaea4ce17bc9d5c0a43 (diff)
downloadslowcgi-96f21314dcd959c2f1b388776ebbefb63049c233.tar.gz
Use -1 instead of WAIT_ANY
This change is needed to build slowcgi(8) successfully on musl-based systems, as the musl libc does not define WAIT_ANY.
-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) {