diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-06-20 14:58:38 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-06-20 14:58:38 +0000 |
commit | 40d578c990e6b58f6e73e2e2f50ceee4ee693011 (patch) | |
tree | a9363edef8ee311198f4ecb3594037ec76c2f095 /src/w32console.c | |
parent | 71918b7522e25fa8112d547a44bb3c3df805bd47 (diff) | |
download | emacs-40d578c990e6b58f6e73e2e2f50ceee4ee693011.tar.gz |
(ctrl_c_handler): Ignore CTRL_BREAK_EVENT signals.
Diffstat (limited to 'src/w32console.c')
-rw-r--r-- | src/w32console.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/w32console.c b/src/w32console.c index 037c21e3038..10190beaa93 100644 --- a/src/w32console.c +++ b/src/w32console.c @@ -82,11 +82,13 @@ HANDLE keyboard_handle; /* 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 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 |