Revert "No need to unblock last process since it will no longer be SIGSTOP'd"

This reverts commit 30aa8b3663.
It was meant for the major branch.
This commit is contained in:
Kurtis Rader 2017-08-13 15:27:40 -07:00
parent b3f43723dc
commit 607d9e6aef

View File

@ -1199,6 +1199,13 @@ void exec_job(parser_t &parser, job_t *j) {
} }
} }
//unblock the last process in the group
if (blocked_pid != -1)
{
kill(blocked_pid, SIGCONT);
blocked_pid = -1;
}
// Clean up any file descriptors we left open. // Clean up any file descriptors we left open.
if (pipe_current_read >= 0) exec_close(pipe_current_read); if (pipe_current_read >= 0) exec_close(pipe_current_read);
if (pipe_current_write >= 0) exec_close(pipe_current_write); if (pipe_current_write >= 0) exec_close(pipe_current_write);