diff options
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c index ed77497d3..0670148c7 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -877,8 +877,10 @@ execpline(Sublist l, int how, int last1) if (how & Z_ASYNC) { lastwj = newjob; jobtab[thisjob].stat |= STAT_NOSTTY; - if (l->flags & PFLAG_COPROC) + if (l->flags & PFLAG_COPROC) { zclose(ipipe[1]); + zclose(opipe[0]); + } if (how & Z_DISOWN) { deletejob(jobtab + thisjob); thisjob = -1; |