From: Richard M. Stallman Date: Tue, 20 Jun 1995 14:58:38 +0000 (+0000) Subject: (ctrl_c_handler): Ignore CTRL_BREAK_EVENT signals. X-Git-Tag: emacs-19.34~3523 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=40d578c990e6b58f6e73e2e2f50ceee4ee693011;p=emacs.git (ctrl_c_handler): Ignore CTRL_BREAK_EVENT signals. --- 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