Commits

Anonymous committed 217755d

(shut_down_emacs): Don't call check_glyph_memory
and check_message_stack if temrinating normally. We want
glyph matrices etc. in a core dump.

Comments (0)

Files changed (1)

   term_ntproc ();
 #endif
 
-  check_glyph_memory ();
-  check_message_stack ();
+  /* Do this only if terminating normally, we want glyph matrices
+     etc. in a core dump.  */
+  if (sig && sig != SIGTERM)
+    {
+      check_glyph_memory ();
+      check_message_stack ();
+    }
 
 #ifdef MSDOS
   dos_cleanup ();