summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/sendbug/sendbug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/sendbug/sendbug.c b/usr.bin/sendbug/sendbug.c
index 424f12b3fff..b98dc94d62f 100644
--- a/usr.bin/sendbug/sendbug.c
+++ b/usr.bin/sendbug/sendbug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sendbug.c,v 1.27 2007/03/26 06:40:01 ray Exp $ */
+/* $OpenBSD: sendbug.c,v 1.28 2007/03/26 06:47:00 ray Exp $ */
/*
* Written by Ray Lai <ray@cyth.net>.
@@ -133,7 +133,8 @@ main(int argc, char *argv[])
mtime = sb.st_mtime;
edit:
- editit(tmppath);
+ if (editit(tmppath) == -1 && errno != ECHILD)
+ err(1, "error running editor");
if (stat(tmppath, &sb) == -1)
err(1, "stat");