Check all child processes for exit in SIGCHLD handler

If a second and third child exit while we are already in the handler, we
will only see a single additional SIGCHLD.  Therefore the handler must
not stop after processing a single child but should check all children.

Fixes #8740
This commit is contained in:
David Hotham 2018-07-14 14:09:38 +01:00
parent 4874214139
commit dee2bf7b52

View File

@ -291,6 +291,5 @@ static void chld_handler(uv_signal_t *handle, int signum)
proc->status = WTERMSIG(stat);
}
proc->internal_exit_cb(proc);
break;
}
}