You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
459 B

  1. --- a/forkexec.c 2017-11-02 07:45:28.679821530 -0400
  2. +++ /bforkexec.c 2017-11-02 07:44:54.527653043 -0400
  3. @@ -108,7 +108,7 @@
  4. int script_status;
  5. pid_t pid;
  6. - while ((pid = waitpid(WAIT_ANY, &script_status, WNOHANG)) != 0) {
  7. + while ((pid = waitpid(-1, &script_status, WNOHANG)) != 0) {
  8. if(pid == -1) {
  9. if(cfg.debug >= 9 && errno != ECHILD)
  10. syslog(LOG_ERR, "%s: %s: %d: waitpid failed %s", __FILE__, __FUNCTION__, __LINE__, strerror(errno));