From cd8d41681b74f3876e6ad24d0d6e8c47c71671e3 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 30 Aug 2001 13:35:28 +0000 Subject: [PATCH] (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. --- src/emacs.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/emacs.c b/src/emacs.c index 7a59c1e40c3..47beb426a15 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1912,8 +1912,13 @@ shut_down_emacs (sig, no_x, stuff) 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 (); -- 2.39.5