diff options
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c index 47772a502..53d7ff673 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -1233,7 +1233,8 @@ execpline(Estate state, wordcode slcode, int how, int last1) (!(jn->stat & STAT_INUSE) || (jn->stat & STAT_DONE))) { deletejob(jn); jn = jobtab + pj; - killjb(jn, lastval & ~0200); + if (jn->gleader) + killjb(jn, lastval & ~0200); } if (list_pipe_child || ((jn->stat & STAT_DONE) && |