summaryrefslogtreecommitdiff
path: root/usr.bin/sendbug/sendbug.c
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-03-26 05:17:54 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-03-26 05:17:54 +0000
commit34fd30c4868c34ce5a97e44c257dbc0c652f99df (patch)
tree572bb14ba49b0324384bd9a2813e9190c4ee1b8f /usr.bin/sendbug/sendbug.c
parent0f5aa7f6ce44f7bb516737ab1e94a9ec79be00a6 (diff)
When someone hits ^C in an editor, the editor does exit(130), I
don't know why. Something to do with the shell, says deraadt@. Continuing to ignore these signals in the child fixes this. Now editit()'s return value can be reliably checked. OK deraadt@.
Diffstat (limited to 'usr.bin/sendbug/sendbug.c')
-rw-r--r--usr.bin/sendbug/sendbug.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/sendbug/sendbug.c b/usr.bin/sendbug/sendbug.c
index 73cb0487d99..d000c55eddf 100644
--- a/usr.bin/sendbug/sendbug.c
+++ b/usr.bin/sendbug/sendbug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sendbug.c,v 1.21 2007/03/26 01:35:36 deraadt Exp $ */
+/* $OpenBSD: sendbug.c,v 1.22 2007/03/26 05:17:53 ray Exp $ */
/*
* Written by Ray Lai <ray@cyth.net>.
@@ -194,9 +194,6 @@ editit(char *tmpfile)
return (-1);
}
if (pid == 0) {
- (void)signal(SIGHUP, SIG_DFL);
- (void)signal(SIGINT, SIG_DFL);
- (void)signal(SIGQUIT, SIG_DFL);
execv(_PATH_BSHELL, argp);
_exit(127);
}