From 7d17c9ca4be0ee1f2e7e983edf06868891901ae7 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 8 May 2000 09:23:09 +0000 Subject: * Bart, Tanaka Akira: 11247: Don't signal to a process group which has only zombie processes. --- Src/exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/exec.c') 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); -- cgit 1.4.1