diff options
| author | Paul Eggert | 2022-12-23 23:36:06 -0800 |
|---|---|---|
| committer | Paul Eggert | 2022-12-24 00:23:02 -0800 |
| commit | 4437dbedf7bd9d7fc3612ce4ecd96d5a2c653df8 (patch) | |
| tree | 2737c1d911c2822439f16c02ee22ca90a5f20f79 /src | |
| parent | 121a9ff9f6fc69066ce30c2dbe6cbfbfdca6aeaa (diff) | |
| download | emacs-4437dbedf7bd9d7fc3612ce4ecd96d5a2c653df8.tar.gz emacs-4437dbedf7bd9d7fc3612ce4ecd96d5a2c653df8.zip | |
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.
Diffstat (limited to 'src')
| -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. */ | |||
| 2910 | 2910 | ||
| 2911 | if (!NILP (restart)) | 2911 | if (!NILP (restart)) |
| 2912 | { | 2912 | { |
| 2913 | turn_on_atimers (false); | ||
| 2913 | #ifdef WINDOWSNT | 2914 | #ifdef WINDOWSNT |
| 2914 | if (w32_reexec_emacs (initial_cmdline, initial_wd) < 0) | 2915 | if (w32_reexec_emacs (initial_cmdline, initial_wd) < 0) |
| 2915 | #else | 2916 | #else |