Check whether we can restart in Fkill_emacs

* src/emacs.c (Fkill_emacs): Report an error if we can't restart.
This commit is contained in:
Lars Ingebrigtsen 2022-04-17 15:00:00 +02:00
parent 38c2a45882
commit b38c3fe863

View file

@ -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))