about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-05-08 09:23:09 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-05-08 09:23:09 +0000
commit7d17c9ca4be0ee1f2e7e983edf06868891901ae7 (patch)
treed91adacec1923b204261672a4fb4b90a41c0924b
parentaa2e531d499d61351210894b2fab549e6b43b9e9 (diff)
downloadzsh-7d17c9ca4be0ee1f2e7e983edf06868891901ae7.tar.gz
zsh-7d17c9ca4be0ee1f2e7e983edf06868891901ae7.tar.xz
zsh-7d17c9ca4be0ee1f2e7e983edf06868891901ae7.zip
* Bart, Tanaka Akira: 11247: Don't signal to a process group which
has only zombie processes.
-rw-r--r--ChangeLog5
-rw-r--r--Src/exec.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d79d9ec01..038269fbb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-08  Tanaka Akira  <akr@zsh.org>
+
+	* Bart, Tanaka Akira: 11247: Don't signal to a process group which
+	has only zombie processes.
+
 2000-05-08  Sven Wischnowsky  <wischnow@informatik.hu-berlin.de>
 
 	* 11244: Completion/Builtins/_zstyle, Completion/Core/_description,
diff --git a/Src/exec.c b/Src/exec.c
index 7913dec2e..7ce553ade 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -2466,8 +2466,8 @@ entersubsh(int how, int cl, int fake)
 	}
     } else if (thisjob != -1 && cl) {
 	if (jobtab[list_pipe_job].gleader && (list_pipe || list_pipe_child)) {
-	    if (killpg(jobtab[list_pipe_job].gleader, 0) == -1 ||
-		setpgrp(0L, jobtab[list_pipe_job].gleader) == -1) {
+	    if (setpgrp(0L, jobtab[list_pipe_job].gleader) == -1 ||
+		killpg(jobtab[list_pipe_job].gleader, 0) == -1) {
 		jobtab[list_pipe_job].gleader =
 		    jobtab[thisjob].gleader = (list_pipe_child ? mypgrp : getpid());
 		setpgrp(0L, jobtab[list_pipe_job].gleader);