summaryrefslogtreecommitdiff
path: root/usr.bin/sendbug/sendbug.c
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-03-26 07:06:04 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-03-26 07:06:04 +0000
commit00011896b9bbe350a158805a627f92aa9db2f649 (patch)
treec76c24f3add1c97add0753417e6260c2bdd965b0 /usr.bin/sendbug/sendbug.c
parentadd64af128b11c8622fab4296bef1fb702857ff8 (diff)
Break on waitpid success; we shouldn't continue on WIFSIGNALED, and
WIFCONTINUED can't happen in this case. OK deraadt@.
Diffstat (limited to 'usr.bin/sendbug/sendbug.c')
-rw-r--r--usr.bin/sendbug/sendbug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sendbug/sendbug.c b/usr.bin/sendbug/sendbug.c
index b98dc94d62f..bbef22d10cc 100644
--- a/usr.bin/sendbug/sendbug.c
+++ b/usr.bin/sendbug/sendbug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sendbug.c,v 1.28 2007/03/26 06:47:00 ray Exp $ */
+/* $OpenBSD: sendbug.c,v 1.29 2007/03/26 07:06:03 ray Exp $ */
/*
* Written by Ray Lai <ray@cyth.net>.
@@ -210,7 +210,7 @@ editit(char *tmpfile)
return (-1);
} else if (WIFSTOPPED(st))
raise(WSTOPSIG(st));
- else if (WIFEXITED(st))
+ else
break;
}
(void)signal(SIGHUP, sighup);