aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-06-20 14:58:38 +0000
committerRichard M. Stallman1995-06-20 14:58:38 +0000
commit40d578c990e6b58f6e73e2e2f50ceee4ee693011 (patch)
treea9363edef8ee311198f4ecb3594037ec76c2f095 /src
parent71918b7522e25fa8112d547a44bb3c3df805bd47 (diff)
downloademacs-40d578c990e6b58f6e73e2e2f50ceee4ee693011.tar.gz
emacs-40d578c990e6b58f6e73e2e2f50ceee4ee693011.zip
(ctrl_c_handler): Ignore CTRL_BREAK_EVENT signals.
Diffstat (limited to 'src')
-rw-r--r--src/w32console.c6
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;
82 82
83 83
84/* Setting this as the ctrl handler prevents emacs from being killed when 84/* Setting this as the ctrl handler prevents emacs from being killed when
85 * someone hits ^C in a 'suspended' session (child shell). */ 85 someone hits ^C in a 'suspended' session (child shell).
86 Also ignore Ctrl-Break signals. */
87
86BOOL 88BOOL
87ctrl_c_handler (unsigned long type) 89ctrl_c_handler (unsigned long type)
88{ 90{
89 return (type == CTRL_C_EVENT) ? TRUE : FALSE; 91 return (type == CTRL_C_EVENT || type == CTRL_BREAK_EVENT);
90} 92}
91 93
92/* If we're updating a frame, use it as the current frame 94/* If we're updating a frame, use it as the current frame