Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8271858

Handle to jimage file inherited into child processes (posix)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 11, 18
    • 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.

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

              Created:
              Updated:
              Resolved: