diff src/w32console.c @ 12336:617f39b43557

(ctrl_c_handler): Ignore CTRL_BREAK_EVENT signals.
author Richard M. Stallman <rms@gnu.org>
date Tue, 20 Jun 1995 14:58:38 +0000
parents 47685fb0fbd1
children efbbbfd268dd
line wrap: on
line diff
--- 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