From 533c9ce1089e28c22b3d0f456150d6fbef5d7ee9 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 11 Sep 2016 14:37:42 -0600 Subject: [PATCH] Add back line mistakenly removed in 0cf2a9351740 --- src/exec_pty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- 2.40.0