about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-01-05 11:04:21 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-01-05 11:04:21 +0000
commit849b808da603eefecb9dbf8c054396ab2692bf09 (patch)
treef9f2581df42fa8f664b2d59c4cc6ee7fbd35c0b6 /Src
parent35b31bdb62cc8c67b83e2c5d197cff1722b8969a (diff)
downloadzsh-849b808da603eefecb9dbf8c054396ab2692bf09.tar.gz
zsh-849b808da603eefecb9dbf8c054396ab2692bf09.tar.xz
zsh-849b808da603eefecb9dbf8c054396ab2692bf09.zip
20632: incorrect propagation of signals to process group
Diffstat (limited to 'Src')
-rw-r--r--Src/exec.c3
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) &&