[Mesa-dev] [PATCH v2 1/4] util: Get program name based on path when possible

Kazlauskas, Nicholas nicholas.kazlauskas at amd.com
Wed Sep 26 12:34:38 UTC 2018


On 09/25/2018 06:01 PM, Emil Velikov wrote:
> On 24 September 2018 at 19:18, Nicholas Kazlauskas
> <nicholas.kazlauskas at amd.com> wrote:
>> Some programs start with the path and command line arguments in
>> argv[0] (program_invocation_name). Chromium is an example of
>> an application using mesa that does this.
>>
>> This tries to query the real path for the symbolic link /proc/self/exe
>> to find the program name instead.
>>
> Out of curiosity: did you sent a patch to Chromium to fix this?
> I'm not quite sure if that (arguments passed in argv[0]) is supposed
> to work, reliably.
> 
> -Emil
> 

I don't think it's expected behavior when it comes to the rest of 
userspace but I'm not familiar enough with Chromium's multiprocess model 
to say for sure. I haven't reported this as a bug.

Anything that uses Chromium as a base exhibits this behavior as well - 
pretty much anything that uses Electron.

Nicholas Kazlauskas


More information about the mesa-dev mailing list