From: Todd C. Miller Date: Sun, 11 Sep 2016 20:37:42 +0000 (-0600) Subject: Add back line mistakenly removed in 0cf2a9351740 X-Git-Tag: SUDO_1_8_18^2~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=533c9ce1089e28c22b3d0f456150d6fbef5d7ee9;p=sudo Add back line mistakenly removed in 0cf2a9351740 --- diff --git a/src/exec_pty.c b/src/exec_pty.c index 8c38a019b..00a138835 100644 --- a/src/exec_pty.c +++ b/src/exec_pty.c @@ -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); } }