about summary refs log tree commit diff
path: root/Src/signals.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-30 08:24:08 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-30 08:24:08 +0000
commit0b826cc4e146a2b2b518f23818613a5472a77ccd (patch)
tree913c1da877c2c4e58836e75696796bb70062442e /Src/signals.c
parent1a6b62b43d645851d96e21f8c2c3f4c7a2e4b475 (diff)
downloadzsh-0b826cc4e146a2b2b518f23818613a5472a77ccd.tar.gz
zsh-0b826cc4e146a2b2b518f23818613a5472a77ccd.tar.xz
zsh-0b826cc4e146a2b2b518f23818613a5472a77ccd.zip
zsh-workers/7530
Diffstat (limited to 'Src/signals.c')
-rw-r--r--Src/signals.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/signals.c b/Src/signals.c
index 1b528f28c..71fac245d 100644
--- a/Src/signals.c
+++ b/Src/signals.c
@@ -591,7 +591,8 @@ killjb(Job jn, int sig)
         if (jn->stat & STAT_SUPERJOB) {
             if (sig == SIGCONT) {
                 for (pn = jobtab[jn->other].procs; pn; pn = pn->next)
-                    killpg(pn->pid, sig);
+                    if (killpg(pn->pid, sig) == -1)
+			kill(pn->pid, sig);
  
                 for (pn = jn->procs; pn->next; pn = pn->next)
                     err = kill(pn->pid, sig);