summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index f76d224d04b..2fcb6a8b9e7 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -821,6 +821,9 @@ shut_down_emacs (sig, no_x, stuff)
int sig, no_x;
Lisp_Object stuff;
{
+ /* Prevent running of hooks from now on. */
+ Vrun_hooks = Qnil;
+
/* If we are controlling the terminal, reset terminal modes */
#ifdef EMACS_HAVE_TTY_PGRP
{