From f57996437ac27bce59c36dd8aeb82dad636596cc Mon Sep 17 00:00:00 2001 From: Mark Peek Date: Fri, 31 Aug 2001 21:50:06 +0000 Subject: 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 MFC after: 1 day --- usr.bin/ee/ee.c | 1 + 1 file changed, 1 insertion(+) (limited to 'usr.bin/ee') diff --git a/usr.bin/ee/ee.c b/usr.bin/ee/ee.c index effdf14fb9153..5491b97b1fe1c 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); -- cgit v1.3