mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
(ctrl_c_handler): Ignore CTRL_BREAK_EVENT signals.
This commit is contained in:
parent
71918b7522
commit
40d578c990
@ -82,11 +82,13 @@ HANDLE keyboard_handle;
|
|||||||
|
|
||||||
|
|
||||||
/* Setting this as the ctrl handler prevents emacs from being killed when
|
/* Setting this as the ctrl handler prevents emacs from being killed when
|
||||||
* someone hits ^C in a 'suspended' session (child shell). */
|
someone hits ^C in a 'suspended' session (child shell).
|
||||||
|
Also ignore Ctrl-Break signals. */
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
ctrl_c_handler (unsigned long type)
|
ctrl_c_handler (unsigned long type)
|
||||||
{
|
{
|
||||||
return (type == CTRL_C_EVENT) ? TRUE : FALSE;
|
return (type == CTRL_C_EVENT || type == CTRL_BREAK_EVENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we're updating a frame, use it as the current frame
|
/* If we're updating a frame, use it as the current frame
|
||||||
|
Loading…
Reference in New Issue
Block a user