From 15790b69c2ea6ba509403b34de4152dd2f066e6c Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 12 May 2017 10:02:17 -0600 Subject: [PATCH] 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(). --- src/signal.c | 1 - 1 file changed, 1 deletion(-) 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: -- 2.50.1