1
0
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:
Richard M. Stallman 1995-06-20 14:58:38 +00:00
parent 71918b7522
commit 40d578c990

View File

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