coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] all: set /proc/self/comm to the program name in the single b


From: Pádraig Brady
Subject: Re: [PATCH] all: set /proc/self/comm to the program name in the single binary
Date: Sun, 18 Oct 2026 10:07:07 +0100
User-agent: Mozilla Thunderbird Beta

On 17/10/2026 21:23, Collin Funk wrote:
Pádraig Brady <P@draigBrady.com> writes:

I think this would use "ginstall" rather than "install".
Also more generally could misattribute comm in the case where you installed
`./configure --enable-single-binary --program-prefix=g` alongside another 
implementation.
In general when copying shebang wrapper scripts to another name,
the basename of that wrapper script should be used.

I.e. it seems better to use this?

   prctl (PR_SET_NAME, last_component (prog_argv[0]));

Yep, you are right, and good point. How does the attached patch look?
I've tested it with all of the --single-binary options.

Since the program transformations, e.g., --program-prefix,
--program-transform-name, etc. are applied during installation we have
to create out own binary.
One minor nit. s/framework_faiure_/framework_failure_/

Otherwise LGTM.

thanks,
Padraig



reply via email to

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