From: Po Lu <luangruo@yahoo.com>
To: emacs-devel@gnu.org
Cc: Lars Ingebrigtsen <larsi@gnus.org>
Subject: Re: master b38c3fe863: Check whether we can restart in Fkill_emacs
Date: Sun, 17 Apr 2022 21:36:43 +0800 [thread overview]
Message-ID: <87h76rn85w.fsf@yahoo.com> (raw)
In-Reply-To: <20220417130021.4C1F4C01684@vcs2.savannah.gnu.org> (Lars Ingebrigtsen's message of "Sun, 17 Apr 2022 09:00:21 -0400 (EDT)")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> 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))
What if initial_argc was set to 0? Linux and several other Unix-like
kernels allow executing binaries without any arguments at all.
next parent reply other threads:[~2022-04-17 13:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <165020042072.4723.2599255234111162803@vcs2.savannah.gnu.org>
[not found] ` <20220417130021.4C1F4C01684@vcs2.savannah.gnu.org>
2022-04-17 13:36 ` Po Lu [this message]
2022-04-17 13:46 ` master b38c3fe863: Check whether we can restart in Fkill_emacs Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h76rn85w.fsf@yahoo.com \
--to=luangruo@yahoo.com \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.