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
This commit is contained in:
Mark Peek 2001-08-31 21:50:06 +00:00
parent 93f4fd1cb6
commit f57996437a
1 changed files with 1 additions and 0 deletions

View File

@ -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);