2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-05 08:45:28 +00:00

sudo_terminated() should not return true when SIGCHLD is pending.

Bug #801
This commit is contained in:
Todd C. Miller
2017-09-06 16:08:23 -06:00
parent 4b5aeefebc
commit d85056d95f

View File

@@ -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;