]> git.eshelyaron.com Git - emacs.git/commitdiff
Check whether we can restart in Fkill_emacs
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 17 Apr 2022 13:00:00 +0000 (15:00 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 17 Apr 2022 13:00:00 +0000 (15:00 +0200)
* src/emacs.c (Fkill_emacs): Report an error if we can't restart.

src/emacs.c

index 50b1628d207d3fdcfbd7186d146ea5fc57775294..173e8e8923d6860a609af6bba2763bcd0d906ec9 100644 (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))