sudo_terminated() should not return true when SIGCHLD is pending.
Bug #801
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user