unblock_previous on exec_job finish

This commit is contained in:
Mahmoud Al-Qudsi
2017-07-29 12:37:17 -05:00
committed by Kurtis Rader
parent c3d756b5df
commit 5db8065f15

View File

@@ -1205,6 +1205,11 @@ void exec_job(parser_t &parser, job_t *j) {
exec_close(pipe_current_write);
pipe_current_write = -1;
}
//unblock the last process because there's no need for it to stay SIGSTOP'd for anything
if (p->is_last_in_job) {
unblock_previous();
}
}
// Clean up any file descriptors we left open.