The intermittent failures of the OnExitTest appear to be a result of a race and using different native APIs to determine if a process is alive.
The ProcessHandle.isAlive method can/should rely on Unix kill(pid, 0) to report that a process is alive or not and not expect a definitive answer from queries to /proc/pid.
The ProcessHandle.isAlive method can/should rely on Unix kill(pid, 0) to report that a process is alive or not and not expect a definitive answer from queries to /proc/pid.
- links to