From 8b65f2d49199734f2ac1c64e0e37d41c220e6f49 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 1 Feb 2000 13:57:05 +0000 Subject: zsh-workers/9503 --- Src/exec.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Src/exec.c') 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 && -- cgit 1.4.1