JDK-8078108 : (process) ProcessHandle.isAlive should be robust
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-04-17
  • Updated: 2015-09-10
  • Resolved: 2015-07-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b74Fixed
Related Reports
Blocks :  
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.