actually block SIGQUIT in signal_init()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1636 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
0ee54d9fb2
commit
2897d2b8b8
|
@ -18,6 +18,11 @@ CVS code -
|
||||||
- Modify to write only the current selection from a file to the
|
- Modify to write only the current selection from a file to the
|
||||||
temporary file used for spell checking when the mark is on,
|
temporary file used for spell checking when the mark is on,
|
||||||
and add a few miscellaneous cosmetic cleanups. (DLR)
|
and add a few miscellaneous cosmetic cleanups. (DLR)
|
||||||
|
signal_init()
|
||||||
|
- Trap SIGQUIT in addition to turning it off via termios in
|
||||||
|
main(). This is consistent with SIGINT, which we trap here
|
||||||
|
and turn off via termios in main(), as well as with the
|
||||||
|
associated comment. (DLR)
|
||||||
main()
|
main()
|
||||||
- Move the call to raw() on systems that don't define
|
- Move the call to raw() on systems that don't define
|
||||||
_POSIX_VDISABLE outside the main input/output loop, as it
|
_POSIX_VDISABLE outside the main input/output loop, as it
|
||||||
|
|
|
@ -2825,6 +2825,7 @@ void signal_init(void)
|
||||||
memset(&act, 0, sizeof(struct sigaction));
|
memset(&act, 0, sizeof(struct sigaction));
|
||||||
act.sa_handler = SIG_IGN;
|
act.sa_handler = SIG_IGN;
|
||||||
sigaction(SIGINT, &act, NULL);
|
sigaction(SIGINT, &act, NULL);
|
||||||
|
sigaction(SIGQUIT, &act, NULL);
|
||||||
|
|
||||||
/* Trap SIGHUP and SIGTERM cuz we want to write the file out. */
|
/* Trap SIGHUP and SIGTERM cuz we want to write the file out. */
|
||||||
act.sa_handler = handle_hupterm;
|
act.sa_handler = handle_hupterm;
|
||||||
|
|
Loading…
Reference in New Issue