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

(process) ProcessHandle.isAlive should be robust

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b74

      Backports

        Description

        The implementation of ProcessHandle.isAlive should be more robust
        and handle OS failure to return the process status.
        The current implementation on Linux uses kill(0); If the OS denies access to kill
        the implementation may incorrectly report the process is alive.
        Additional measures like reading /proc/pid should be added.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                rriggs Roger Riggs
                Reporter:
                rriggs Roger Riggs
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: