about summary refs log tree commit diff
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
parent35b31bdb62cc8c67b83e2c5d197cff1722b8969a (diff)
downloadzsh-849b808da603eefecb9dbf8c054396ab2692bf09.tar.gz
zsh-849b808da603eefecb9dbf8c054396ab2692bf09.tar.xz
zsh-849b808da603eefecb9dbf8c054396ab2692bf09.zip
20632: incorrect propagation of signals to process group
-rw-r--r--ChangeLog5
-rw-r--r--Src/exec.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b52f9493f..99d9935e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-05  Peter Stephenson  <pws@csr.com>
+
+	* 20632: propagating signals incorrectly to current process
+	group could kill shell.
+
 2004-12-27  Clint Adams  <clint@zsh.org>
 
 	* 20639: Completion/Unix/Command/_bogofilter:
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) &&