mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 08:33:24 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82694
@ -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