fix(browser): psutil.pid_exists liveness probe — Windows footgun (#85125 CI)

This commit is contained in:
kshitijk4poor
2026-08-25 03:30:11 +05:30
committed by kshitij
parent 3a94101524
commit 011b2cf4d0
+2
View File
@@ -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: