emacs-devel
[Top][All Lists]
Advanced

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

Re: master 9fc3b00373: Improve `restart-emacs' error reporting


From: Philipp Stephani
Subject: Re: master 9fc3b00373: Improve `restart-emacs' error reporting
Date: Mon, 18 Apr 2022 11:21:03 +0200

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 via email to

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