bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp


From: Eli Zaretskii
Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp
Date: Mon, 11 Oct 2021 18:54:11 +0300

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: Daniel Colascione <dancol@dancol.org>,  34180@debbugs.gnu.org,
>   monnier@IRO.UMontreal.CA, Paul Eggert <paul.eggert@verizon.net>
> Date: Mon, 11 Oct 2021 16:02:44 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Wouldn't it be better to have a method of finding the absolute file
> > name of the executable from which the process was started, regardless
> > of what argv[0] says?  The way to do that is system-dependent (on
> > GNU/Linux, I believe you need to readlink ("/proc/self/exe") or
> > somesuch, for example), but AFAIK this can be done on all platforms we
> > support.
> 
> It looks like find_executable from progreloc in gnulib provides a
> portable interface for this?

We already solved that in load_pdump_find_executable, didn't we?





reply via email to

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