From 96f21314dcd959c2f1b388776ebbefb63049c233 Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Sun, 24 May 2020 13:57:11 +0200 Subject: 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. --- slowcgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3-2-gb3c3