diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-12-23 23:36:06 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-12-24 00:23:02 -0800 |
commit | 4437dbedf7bd9d7fc3612ce4ecd96d5a2c653df8 (patch) | |
tree | 2737c1d911c2822439f16c02ee22ca90a5f20f79 | |
parent | 121a9ff9f6fc69066ce30c2dbe6cbfbfdca6aeaa (diff) | |
download | emacs-4437dbedf7b.tar.gz |
Fix restart-emacs alarms (Bug#60220)
* src/emacs.c (Fkill_emacs): Turn timers off before execing,
so that the re-execed Emacs doesn’t get a timer alarm.
-rw-r--r-- | src/emacs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c index d8a2863fd9c..a2ba4b50f04 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -2910,6 +2910,7 @@ killed. */ if (!NILP (restart)) { + turn_on_atimers (false); #ifdef WINDOWSNT if (w32_reexec_emacs (initial_cmdline, initial_wd) < 0) #else |