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:
@@ -2910,6 +2910,7 @@ killed. */
|
||||
|
||||
if (!NILP (restart))
|
||||
{
|
||||
turn_on_atimers (false);
|
||||
#ifdef WINDOWSNT
|
||||
if (w32_reexec_emacs (initial_cmdline, initial_wd) < 0)
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user