summaryrefslogtreecommitdiffstats
path: root/usr.bin/sendbug/sendbug.c
diff options
context:
space:
mode:
authorray <ray@openbsd.org>2007-03-26 07:06:03 +0000
committerray <ray@openbsd.org>2007-03-26 07:06:03 +0000
commitf27d80da2f2d463fa0d073ddf03b3b21d7a7de1c (patch)
tree50cbfc306a9d382533af3bb1c48b5e85bd1c56ed /usr.bin/sendbug/sendbug.c
parentCertain errors in editit() should be fatal. (diff)
downloadwireguard-openbsd-f27d80da2f2d463fa0d073ddf03b3b21d7a7de1c.tar.xz
wireguard-openbsd-f27d80da2f2d463fa0d073ddf03b3b21d7a7de1c.zip
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);