2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

Add SIGCHLD to the list of signals we install sudo_handler() for.

Otherwise, it is possible for the command to exit before the SIGCHLD
handler is installed.  POSIX says that signals that are ignored by
default are still ignored even if the signal mask would block them.
We need to have a handler installed for SIGCHLD before the fork().
This commit is contained in:
Todd C. Miller 2017-05-12 10:02:17 -06:00
parent 95e92bfe4e
commit 15790b69c2

View File

@ -127,7 +127,6 @@ init_signals(void)
for (ss = saved_signals; ss->signo > 0; ss++) {
switch (ss->signo) {
case SIGCHLD:
case SIGCONT:
case SIGPIPE:
case SIGTTIN: