]> granicus.if.org Git - sudo/commitdiff
sudo_terminated() should not return true when SIGCHLD is pending.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 6 Sep 2017 22:08:23 +0000 (16:08 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 6 Sep 2017 22:08:23 +0000 (16:08 -0600)
Bug #801

src/exec.c

index 2d6b6f119362ee66cd6ced733724d028f4bc63ef..2bf967f017ebdd0b134931875d7e4f913e1dc6eb 100644 (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;