# HG changeset patch # User Richard M. Stallman # Date 803660318 0 # Node ID 617f39b4355759b52e20c934748a4e5bb03a9b98 # Parent 0ab97d00e3365ef343efd7f8a0b4693a0d37ceb6 (ctrl_c_handler): Ignore CTRL_BREAK_EVENT signals. diff -r 0ab97d00e336 -r 617f39b43557 src/w32console.c --- a/src/w32console.c Tue Jun 20 14:56:35 1995 +0000 +++ b/src/w32console.c Tue Jun 20 14:58:38 1995 +0000 @@ -82,11 +82,13 @@ /* 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