From: Todd C. Miller Date: Wed, 6 Sep 2017 22:08:23 +0000 (-0600) Subject: sudo_terminated() should not return true when SIGCHLD is pending. X-Git-Tag: SUDO_1_8_21p2^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d85056d95fdd505d87aa46e52d8e0d017f207227;p=sudo sudo_terminated() should not return true when SIGCHLD is pending. Bug #801 --- diff --git a/src/exec.c b/src/exec.c index 2d6b6f119..2bf967f01 100644 --- a/src/exec.c +++ b/src/exec.c @@ -311,6 +311,9 @@ sudo_terminated(struct command_status *cstat) for (signo = 0; signo < NSIG; signo++) { if (signal_pending(signo)) { switch (signo) { + case SIGCHLD: + /* Ignore. */ + break; case SIGTSTP: /* Suspend below if not terminated. */ sigtstp = true;