Withdrawn: JDK-8271858: Handle to jimage file inherited into child processes (posix)

Thomas Stuefe stuefe at openjdk.java.net
Wed Aug 11 07:01:30 UTC 2021


On Wed, 4 Aug 2021 12:22:24 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> We should not leak the handle to the jimage file (lib/modules) to childs.
> 
> JDK-8194734 did solve this for windows. We should use FD_CLOEXEC on Posix as well.
> 
> Note that this only poses a problem when a child process is spawned off not via `Runtime.exec` but via another route since the spawnhelper closes all file descriptors.
> 
> ---
> test:
> 
> manually verified that lib/modules now has the FD_CLOEXEC flag set.

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4991


More information about the core-libs-dev mailing list