From: Todd C. Miller Date: Fri, 12 May 2017 16:02:17 +0000 (-0600) Subject: Add SIGCHLD to the list of signals we install sudo_handler() for. X-Git-Tag: SUDO_1_8_21^2~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15790b69c2ea6ba509403b34de4152dd2f066e6c;p=sudo 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(). --- diff --git a/src/signal.c b/src/signal.c index 7d18cf2bf..d6fc5129f 100644 --- a/src/signal.c +++ b/src/signal.c @@ -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: