]> granicus.if.org Git - sudo/commitdiff
Add SIGCHLD to the list of signals we install sudo_handler() for.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 12 May 2017 16:02:17 +0000 (10:02 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 12 May 2017 16:02:17 +0000 (10:02 -0600)
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

index 7d18cf2bf9e6dad877837c038514fc42529d04c5..d6fc5129f3404d25a1d8d4d741f89b29e2af02eb 100644 (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: