]> granicus.if.org Git - sudo/commitdiff
Add back line mistakenly removed in 0cf2a9351740
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 11 Sep 2016 20:37:42 +0000 (14:37 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 11 Sep 2016 20:37:42 +0000 (14:37 -0600)
src/exec_pty.c

index 8c38a019bc8cd6ddcee543848295958c8d354450..00a138835d9660dc6179741bd982f5a83f42dba2 100644 (file)
@@ -1201,7 +1201,8 @@ handle_sigchld(int backchannel, struct command_status *cstat)
                pid = tcgetpgrp(io_fds[SFD_SLAVE]);
            } while (pid == -1 && errno == EINTR);
            if (pid != mon_pgrp)
-               send_status(backchannel, cstat);
+               cmnd_pgrp = pid;
+           send_status(backchannel, cstat);
        }
     }