diff options
author | 2007-03-26 05:17:53 +0000 | |
---|---|---|
committer | 2007-03-26 05:17:53 +0000 | |
commit | 6b66f90743f6945998cab90ed68808b5684e3d89 (patch) | |
tree | 8db505823310057b85be6037057d8b328dade5e7 /usr.bin/sendbug/sendbug.c | |
parent | disable ttyC1 until someone fixes the stupid bug (diff) | |
download | wireguard-openbsd-6b66f90743f6945998cab90ed68808b5684e3d89.tar.xz wireguard-openbsd-6b66f90743f6945998cab90ed68808b5684e3d89.zip |
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.c | 5 |
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); } |