diff options
author | Wynn Wolf Arbor | 2020-05-24 13:57:11 +0200 |
---|---|---|
committer | Wynn Wolf Arbor | 2020-05-24 14:05:54 +0200 |
commit | 96f21314dcd959c2f1b388776ebbefb63049c233 (patch) | |
tree | 0206edbd75d4fb53f14a70a5c8fd705a6cf5aa23 | |
parent | efb214f552afc854a9eacdaea4ce17bc9d5c0a43 (diff) | |
download | slowcgi-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |