blob: 4409a8c42c22f30271d68f5d612f7cea2dac7458 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- a/forkexec.c 2017-11-02 07:45:28.679821530 -0400
+++ /bforkexec.c 2017-11-02 07:44:54.527653043 -0400
@@ -108,7 +108,7 @@
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));
|