From 40d578c990e6b58f6e73e2e2f50ceee4ee693011 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 20 Jun 1995 14:58:38 +0000 Subject: [PATCH] (ctrl_c_handler): Ignore CTRL_BREAK_EVENT signals. --- src/w32console.c | 6 ++++-- 1 file 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 -- 2.39.2