Skip to content
Advertisement

Tag: isalive

ProcessHandle returns ambiguous results

I’ve two Java 11 methods that check whether a process for a given PID is running: When checking multiple PIDs on Linux clients, I’m getting sometimes different results for certain PIDs, where the first implementation always returns true and the second one always false. Checking some “false positives” with shell command ps -ef | grep <pid> shows that first implementation

Advertisement