diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-01 13:57:05 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-01 13:57:05 +0000 |
commit | 8b65f2d49199734f2ac1c64e0e37d41c220e6f49 (patch) | |
tree | 24ed809da78b734b1ba7ad7a5d551cf41d81f790 | |
parent | 84337f60f4fa3c22a27b1c4313837b5a6cb75183 (diff) | |
download | zsh-8b65f2d49199734f2ac1c64e0e37d41c220e6f49.tar.gz zsh-8b65f2d49199734f2ac1c64e0e37d41c220e6f49.tar.xz zsh-8b65f2d49199734f2ac1c64e0e37d41c220e6f49.zip |
zsh-workers/9503
-rw-r--r-- | Src/exec.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Src/exec.c b/Src/exec.c index e504554e5..7f6c9f136 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -980,9 +980,12 @@ execpline(Estate state, wordcode slcode, int how, int last1) jn->stat |= STAT_NOPRINT; makerunning(jn); } - if (!(jn->stat & STAT_LOCKED)) { - child_unblock(); + if (!(jn->stat & STAT_LOCKED)) waitjobs(); + + if (list_pipe_job && jobtab[list_pipe_job].procs && + !(jobtab[list_pipe_job].stat & STAT_STOPPED)) { + child_unblock(); child_block(); } if (list_pipe_child && |