Handle to jimage file inherited into child processes (posix)

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 11, 18
    • Component/s: tools
    • None

      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.

            Assignee:
            Thomas Stuefe
            Reporter:
            Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: