treewide: Run refresh on all packages
[feed/packages.git] / net / foolsm / patches / 110-missing-WAIT_ANY.patch
1 --- a/forkexec.c
2 +++ b/forkexec.c
3 @@ -108,7 +108,7 @@ static void sigchld_hdl(int sig)
4 int script_status;
5 pid_t pid;
6
7 - while ((pid = waitpid(WAIT_ANY, &script_status, WNOHANG)) != 0) {
8 + while ((pid = waitpid(-1, &script_status, WNOHANG)) != 0) {
9 if(pid == -1) {
10 if(cfg.debug >= 9 && errno != ECHILD)
11 syslog(LOG_ERR, "%s: %s: %d: waitpid failed %s", __FILE__, __FUNCTION__, __LINE__, strerror(errno));