fix(browser): psutil.pid_exists liveness probe — Windows footgun (#85125 CI)
This commit is contained in:
@@ -3392,6 +3392,8 @@ def _pid_exists(pid: int) -> bool:
|
||||
return psutil.pid_exists(pid)
|
||||
except Exception:
|
||||
return False
|
||||
# windows-footgun: ok — psutil.pid_exists above handles Windows; this
|
||||
# os.kill(pid, 0) probe only runs when psutil is unavailable.
|
||||
try:
|
||||
os.kill(pid, 0)
|
||||
except ProcessLookupError:
|
||||
|
||||
Reference in New Issue
Block a user