emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master b38c3fe863: Check whether we can restart in Fkill_emacs


From: Lars Ingebrigtsen
Subject: master b38c3fe863: Check whether we can restart in Fkill_emacs
Date: Sun, 17 Apr 2022 09:00:21 -0400 (EDT)

branch: master
commit b38c3fe8632ec0ee4f180dae2938959bd8b4c46e
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Check whether we can restart in Fkill_emacs
    
    * src/emacs.c (Fkill_emacs): Report an error if we can't restart.
---
 src/emacs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/emacs.c b/src/emacs.c
index 50b1628d20..173e8e8923 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]