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++) {
|
for (signo = 0; signo < NSIG; signo++) {
|
||||||
if (signal_pending(signo)) {
|
if (signal_pending(signo)) {
|
||||||
switch (signo) {
|
switch (signo) {
|
||||||
|
case SIGCHLD:
|
||||||
|
/* Ignore. */
|
||||||
|
break;
|
||||||
case SIGTSTP:
|
case SIGTSTP:
|
||||||
/* Suspend below if not terminated. */
|
/* Suspend below if not terminated. */
|
||||||
sigtstp = true;
|
sigtstp = true;
|
||||||
|
Reference in New Issue
Block a user