RFR: JDK-8310265: (process) jspawnhelper should not use argv[0] [v2]
Thomas Stuefe
stuefe at openjdk.org
Mon Jun 19 08:41:08 UTC 2023
On Mon, 19 Jun 2023 06:07:26 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
>> Reported by [jarabekit at gmail.com](mailto:jarabekit at gmail.com) [1]
>>
>> jspawnhelper uses argv[0] to receive the fd string from the parent. That breaks with conventions and trips over certain tools like binfmt_misc.
>>
>> For details, see linked ML discussion.
>>
>> [1] https://mail.openjdk.org/pipermail/core-libs-dev/2023-June/107738.html
>
> Thomas Stuefe has updated the pull request incrementally with one additional commit since the last revision:
>
> correct comment
(also ran test/jdk/java/lang/Process* locally on linux x64)
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14531#issuecomment-1596756036
More information about the core-libs-dev
mailing list