diff options
author | 2007-03-26 05:34:30 +0000 | |
---|---|---|
committer | 2007-03-26 05:34:30 +0000 | |
commit | 7132776c5a5cb2f63b766eb01a108403d6b530fa (patch) | |
tree | 9febc20fa8c7d6f67a99f88822647a31522b3002 /usr.bin/sendbug/sendbug.c | |
parent | When someone hits ^C in an editor, the editor does exit(130), I (diff) | |
download | wireguard-openbsd-7132776c5a5cb2f63b766eb01a108403d6b530fa.tar.xz wireguard-openbsd-7132776c5a5cb2f63b766eb01a108403d6b530fa.zip |
Check fork() == -1 instead of fork() < 0.
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 d000c55eddf..7b0bf6516ae 100644 --- a/usr.bin/sendbug/sendbug.c +++ b/usr.bin/sendbug/sendbug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sendbug.c,v 1.22 2007/03/26 05:17:53 ray Exp $ */ +/* $OpenBSD: sendbug.c,v 1.23 2007/03/26 05:34:30 ray Exp $ */ /* * Written by Ray Lai <ray@cyth.net>. @@ -179,7 +179,7 @@ editit(char *tmpfile) (void)signal(SIGHUP, SIG_IGN); (void)signal(SIGINT, SIG_IGN); (void)signal(SIGQUIT, SIG_IGN); - if ((pid = fork()) < 0) { + if ((pid = fork()) == -1) { int saved_errno = errno; (void)signal(SIGHUP, SIG_DFL); |