summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-04-18 10:50:45 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-04-18 10:50:45 +0200
commite0009409b8cb0ce3810abf879e9e00c915724e47 (patch)
treecd6d0e7f51f919090bafb12d33ddd41a7e492024 /src/emacs.c
parent713a1997059fb823f9fa26f92cee032fb6bfdc25 (diff)
downloademacs-e0009409b8cb0ce3810abf879e9e00c915724e47.tar.gz
Make "restart" erroring slightly more reliable
* src/emacs.c (Fkill_emacs): Use emacs_perror for the "restart" errors -- we've already shut down Emacs at this point, so the normal erroring machinery isn't reliable.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emacs.c b/src/emacs.c
index fd79963ed9c..6ef19561e0b 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -2818,13 +2818,13 @@ killed. */
/* This is very unlikely, but it's possible to execute a binary
(on some systems) with no argv. */
if (initial_argc < 1)
- error ("No command line arguments known; unable to re-execute Emacs");
+ emacs_perror ("No command line arguments known; unable to re-execute Emacs");
#ifdef WINDOWSNT
if (w32_reexec_emacs (initial_cmdline, initial_wd) < 0)
#else
if (execvp (*initial_argv, initial_argv) < 1)
#endif
- error ("Unable to re-execute Emacs");
+ emacs_perror ("Unable to re-execute Emacs");
}
if (FIXNUMP (arg))