diff options
| author | Glenn Morris | 2018-01-23 20:55:09 -0500 |
|---|---|---|
| committer | Glenn Morris | 2018-01-23 20:55:09 -0500 |
| commit | 109da684c5124e22505917fe0255ca66f2a6bfc9 (patch) | |
| tree | b0f7155da25ad9157d85fed0d740083a46609f30 /src | |
| parent | 4c998b4e4f5f468264d3ea0bee5da586f32938e1 (diff) | |
| download | emacs-109da684c5124e22505917fe0255ca66f2a6bfc9.tar.gz emacs-109da684c5124e22505917fe0255ca66f2a6bfc9.zip | |
Avoid kill-emacs-hook errors hanging batch mode
* src/emacs.c (Fkill_emacs): Prevent errors from kill-emacs-hook
hanging Emacs in batch mode. (Bug#29955)
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c index 84cd3ac8c8a..8ea61b71fb7 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -2024,7 +2024,10 @@ all of which are called before Emacs is actually killed. */ | |||
| 2024 | /* Fsignal calls emacs_abort () if it sees that waiting_for_input is | 2024 | /* Fsignal calls emacs_abort () if it sees that waiting_for_input is |
| 2025 | set. */ | 2025 | set. */ |
| 2026 | waiting_for_input = 0; | 2026 | waiting_for_input = 0; |
| 2027 | run_hook (Qkill_emacs_hook); | 2027 | if (noninteractive) |
| 2028 | safe_run_hooks (Qkill_emacs_hook); | ||
| 2029 | else | ||
| 2030 | run_hook (Qkill_emacs_hook); | ||
| 2028 | 2031 | ||
| 2029 | #ifdef HAVE_X_WINDOWS | 2032 | #ifdef HAVE_X_WINDOWS |
| 2030 | /* Transfer any clipboards we own to the clipboard manager. */ | 2033 | /* Transfer any clipboards we own to the clipboard manager. */ |