RFR: 8361873: [GCC static analyzer] exec_md.c forkedChildProcess potential double 'close' of file descriptor '3' [v2]
Chris Plummer
cjplummer at openjdk.org
Mon Jul 28 16:18:45 UTC 2025
On Sun, 27 Jul 2025 06:38:34 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> Note that in the official Runtime.exec layer over in libjava, we switched to setting the filedescriptors to FD_CLOEXEC, which seems more elegant and circumvents this and some other problems.
Are you talking about what is being done in os::open()? What about opens done that don't go through os::open() such as opens from app native code?
In any case, I think this is beyond the scope of this PR. Maybe an RFE could be filed for it if you think it is worth doing.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26487#issuecomment-3127975427
More information about the serviceability-dev
mailing list