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.
This commit is contained in:
Paul Eggert 2022-12-23 23:36:06 -08:00
parent 121a9ff9f6
commit 4437dbedf7

View file

@ -2910,6 +2910,7 @@ killed. */
if (!NILP (restart))
{
turn_on_atimers (false);
#ifdef WINDOWSNT
if (w32_reexec_emacs (initial_cmdline, initial_wd) < 0)
#else