diff options
author | mp <mp@FreeBSD.org> | 2001-08-31 21:50:06 +0000 |
---|---|---|
committer | mp <mp@FreeBSD.org> | 2001-08-31 21:50:06 +0000 |
commit | bb0d8fb1532d67d3b04765da6adc382e9fdad1a1 (patch) | |
tree | 56c7ac9b9b252d938558e25141c504f9c3081285 /usr.bin | |
parent | d3109e582d93ac938f94a7942d621784767fb319 (diff) | |
download | FreeBSD-src-bb0d8fb1532d67d3b04765da6adc382e9fdad1a1.zip FreeBSD-src-bb0d8fb1532d67d3b04765da6adc382e9fdad1a1.tar.gz |
Exit gracefully when a SIGHUP is received. This prevents ee from going into
an infinite spin loop when the terminal window is forcibly blown away.
PR: 29553
Reported by: Sung N. Cho <sucho2@vt.edu>
MFC after: 1 day
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ee/ee.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/ee/ee.c b/usr.bin/ee/ee.c index effdf14..5491b97 100644 --- a/usr.bin/ee/ee.c +++ b/usr.bin/ee/ee.c @@ -562,6 +562,7 @@ char *argv[]; signal(SIGCHLD, SIG_DFL); signal(SIGSEGV, SIG_DFL); signal(SIGINT, edit_abort); + signal(SIGHUP, edit_abort); d_char = malloc(3); /* provide a buffer for multi-byte chars */ d_word = malloc(150); |