about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-01 16:52:09 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-01 16:52:09 +0000
commit0872dea481839f3352082665a71e9c90f5ae6fc3 (patch)
treea6a379085430411564144c9b58f40ce4633acf47
parent9556424c44d28f6601b867bb0b727db29f36f975 (diff)
downloadzsh-0872dea481839f3352082665a71e9c90f5ae6fc3.tar.gz
zsh-0872dea481839f3352082665a71e9c90f5ae6fc3.tar.xz
zsh-0872dea481839f3352082665a71e9c90f5ae6fc3.zip
zsh-workers/7617
-rw-r--r--Src/signals.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/signals.c b/Src/signals.c
index e5ee5dded..0c8aeb22e 100644
--- a/Src/signals.c
+++ b/Src/signals.c
@@ -593,15 +593,15 @@ killjb(Job jn, int sig)
                 for (pn = jobtab[jn->other].procs; pn; pn = pn->next)
                     if (killpg(pn->pid, sig) == -1)
 			if (kill(pn->pid, sig) == -1 && errno != ESRCH)
-			    err |= -1;
+			    err = -1;
  
                 for (pn = jn->procs; pn->next; pn = pn->next)
                     if (kill(pn->pid, sig) == -1 && errno != ESRCH)
-			err |= -1;
+			err = -1;
 
 		if (!jobtab[jn->other].procs && pn)
 		    if (kill(pn->pid, sig) == -1 && errno != ESRCH)
-			err |= -1;
+			err = -1;
 
                 return err;
             }
@@ -609,7 +609,7 @@ killjb(Job jn, int sig)
 		err = -1;
 		
 	    if (killpg(jn->gleader, sig) == -1 && errno != ESRCH)
-		err |= -1;
+		err = -1;
 
 	    return err;
         }