summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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);