From d85056d95fdd505d87aa46e52d8e0d017f207227 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 6 Sep 2017 16:08:23 -0600 Subject: [PATCH] sudo_terminated() should not return true when SIGCHLD is pending. Bug #801 --- src/exec.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.50.1