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:
parent
93f4fd1cb6
commit
f57996437a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user