]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix restart-emacs alarms (Bug#60220)
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Dec 2022 07:36:06 +0000 (23:36 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Dec 2022 08:23:02 +0000 (00:23 -0800)
* src/emacs.c (Fkill_emacs): Turn timers off before execing,
so that the re-execed Emacs doesn’t get a timer alarm.

src/emacs.c

index d8a2863fd9c4fa4671f55bae59d573e0dfe358f0..a2ba4b50f04d44121ba94f35f5e60df260993be1 100644 (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