From: Lars Ingebrigtsen Date: Sun, 17 Apr 2022 13:00:00 +0000 (+0200) Subject: Check whether we can restart in Fkill_emacs X-Git-Tag: emacs-29.0.90~1931^2~459 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b38c3fe8632ec0ee4f180dae2938959bd8b4c46e;p=emacs.git Check whether we can restart in Fkill_emacs * src/emacs.c (Fkill_emacs): Report an error if we can't restart. --- diff --git a/src/emacs.c b/src/emacs.c index 50b1628d207..173e8e8923d 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -2807,7 +2807,8 @@ killed. */ if (!NILP (restart)) { - execvp (*initial_argv, initial_argv); + if (execvp (*initial_argv, initial_argv) < 1) + error ("Unable to re-execute Emacs"); } if (FIXNUMP (arg))