Skip to content

The agent that grows with you

fix(updater): mark PID probe POSIX-only

fangliquanflqb70bd03b3cb7
diff --git a/hermes_cli/_early_recovery.py b/hermes_cli/_early_recovery.py
index 15fcd980205..942eb632d2d 100644
--- a/hermes_cli/_early_recovery.py
+++ b/hermes_cli/_early_recovery.py
@@ -109,7 +109,7 @@ def _pid_is_running(pid: int) -> bool:
except Exception:
return True
try:
- os.kill(pid, 0)
+ os.kill(pid, 0) # windows-footgun: ok — Windows returns above
except ProcessLookupError:
return False
except PermissionError: