diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2007-03-26 05:34:31 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2007-03-26 05:34:31 +0000 |
commit | 1b1710bd5e0457f3118fb8da7172ee3717f38508 (patch) | |
tree | bc117bf7f4a28ffbb9f48dabbb2908fb081cd8fb /usr.bin | |
parent | 34fd30c4868c34ce5a97e44c257dbc0c652f99df (diff) |
Check fork() == -1 instead of fork() < 0.
Diffstat (limited to 'usr.bin')
-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); |