projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3b3683
)
Avoid kill-emacs-hook errors hanging batch mode
author
Glenn Morris
<rgm@gnu.org>
Wed, 24 Jan 2018 01:55:09 +0000
(20:55 -0500)
committer
Glenn Morris
<rgm@gnu.org>
Mon, 12 Nov 2018 19:03:18 +0000
(14:03 -0500)
* src/emacs.c (Fkill_emacs): Prevent errors from kill-emacs-hook
hanging Emacs in batch mode. (Bug#29955)
(cherry picked from commit
109da684c5124e22505917fe0255ca66f2a6bfc9
)
src/emacs.c
patch
|
blob
|
history
diff --git
a/src/emacs.c
b/src/emacs.c
index f80047e89e7066d359a69e76e474987269209109..7a918b8bdf6c8919da64cdc642c7d883941c40e6 100644
(file)
--- a/
src/emacs.c
+++ b/
src/emacs.c
@@
-2017,7
+2017,10
@@
all of which are called before Emacs is actually killed. */
/* Fsignal calls emacs_abort () if it sees that waiting_for_input is
set. */
waiting_for_input = 0;
- run_hook (Qkill_emacs_hook);
+ if (noninteractive)
+ safe_run_hooks (Qkill_emacs_hook);
+ else
+ run_hook (Qkill_emacs_hook);
#ifdef HAVE_X_WINDOWS
/* Transfer any clipboards we own to the clipboard manager. */