diff options
author | 2007-03-26 07:06:03 +0000 | |
---|---|---|
committer | 2007-03-26 07:06:03 +0000 | |
commit | f27d80da2f2d463fa0d073ddf03b3b21d7a7de1c (patch) | |
tree | 50cbfc306a9d382533af3bb1c48b5e85bd1c56ed /usr.bin/sendbug/sendbug.c | |
parent | Certain errors in editit() should be fatal. (diff) | |
download | wireguard-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.c | 4 |
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); |