unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Po Lu <luangruo@yahoo.com>, Emacs developers <emacs-devel@gnu.org>
Subject: Re: master 9fc3b00373: Improve `restart-emacs' error reporting
Date: Mon, 18 Apr 2022 11:21:03 +0200	[thread overview]
Message-ID: <CAArVCkSj2fmveTVZgozqYuSGz-doAcnGe2mX1j7JfW77JPpVDA@mail.gmail.com> (raw)
In-Reply-To: <8735ialpot.fsf@gnus.org>

Am Mo., 18. Apr. 2022 um 11:14 Uhr schrieb Lars Ingebrigtsen <larsi@gnus.org>:
>
> Po Lu <luangruo@yahoo.com> writes:
>
> > How would this work if initial_argv[0] is a binary in the PATH, not a
> > file name?
>
> Oh, it won't.  But I was thinking we'd need to store the actual binary
> we're using (because of --chdir/default-directory problems) somewhere,
> so I'll be adjusting the test and code from argv[0] to the actual
> binary in a while.

On GNU/Linux, use getauxval(AT_EXECFN) or (probably even better)
getauxval(AT_EXECFD) with fexecve.



      reply	other threads:[~2022-04-18  9:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <165027259019.5917.10350012783877143480@vcs2.savannah.gnu.org>
     [not found] ` <20220418090310.749C3C01684@vcs2.savannah.gnu.org>
2022-04-18  9:08   ` master 9fc3b00373: Improve `restart-emacs' error reporting Po Lu
2022-04-18  9:13     ` Lars Ingebrigtsen
2022-04-18  9:21       ` Philipp Stephani [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAArVCkSj2fmveTVZgozqYuSGz-doAcnGe2mX1j7JfW77JPpVDA@mail.gmail.com \
    --to=p.stephani2@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=luangruo@yahoo.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).