diff options
author | Kevin Daudt <ops@ikke.info> | 2018-09-12 17:46:26 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-27 06:15:09 +0000 |
commit | 1a8a04634245f476ec6239633a403f09a22f44e6 (patch) | |
tree | d7c6617a909af6693bcace097a41b0149308aa1b /testing/foolsm/fix-non-standard-macro.patch | |
parent | 2647441409bc9d6445aaa6e3371f3d395c58d62a (diff) | |
download | aports-1a8a04634245f476ec6239633a403f09a22f44e6.tar.bz2 aports-1a8a04634245f476ec6239633a403f09a22f44e6.tar.xz |
testing/foolsm: new aport
Diffstat (limited to 'testing/foolsm/fix-non-standard-macro.patch')
-rw-r--r-- | testing/foolsm/fix-non-standard-macro.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/foolsm/fix-non-standard-macro.patch b/testing/foolsm/fix-non-standard-macro.patch new file mode 100644 index 0000000000..58d87e2755 --- /dev/null +++ b/testing/foolsm/fix-non-standard-macro.patch @@ -0,0 +1,13 @@ +diff --git a/forkexec.c b/forkexec.c.new +index 203d1d3202..e3708bbfa5 100644 +--- a/forkexec.c ++++ b/forkexec.c.new +@@ -108,7 +108,7 @@ static void sigchld_hdl(int sig) + int script_status; + pid_t pid; + +- while ((pid = waitpid(WAIT_ANY, &script_status, WNOHANG)) != 0) { ++ while ((pid = waitpid(-1, &script_status, WNOHANG)) != 0) { + if(pid == -1) { + if(cfg.debug >= 9 && errno != ECHILD) + syslog(LOG_ERR, "%s: %s: %d: waitpid failed %s", __FILE__, __FUNCTION__, __LINE__, strerror(errno)); |