projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38c2a45
)
Check whether we can restart in Fkill_emacs
author
Lars Ingebrigtsen
<larsi@gnus.org>
Sun, 17 Apr 2022 13:00:00 +0000
(15:00 +0200)
committer
Lars 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
patch
|
blob
|
history
diff --git
a/src/emacs.c
b/src/emacs.c
index 50b1628d207d3fdcfbd7186d146ea5fc57775294..173e8e8923d6860a609af6bba2763bcd0d906ec9 100644
(file)
--- 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))