From 607d9e6aef0bd412c57420352a4ccaac85f38f4f Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sun, 13 Aug 2017 15:27:40 -0700 Subject: [PATCH] Revert "No need to unblock last process since it will no longer be SIGSTOP'd" This reverts commit 30aa8b3663008afb1275ab7c90a30073b4235639. It was meant for the major branch. --- src/exec.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/exec.cpp b/src/exec.cpp index dd5763128..9f05a5d8e 100644 --- a/src/exec.cpp +++ b/src/exec.cpp @@ -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. if (pipe_current_read >= 0) exec_close(pipe_current_read); if (pipe_current_write >= 0) exec_close(pipe_current_write);