changeset 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 0ab97d00e336
children 85bdcc694c7a
files src/w32console.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
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