mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-29 18:46:59 +00:00
lint: suppress windows-footgun false positive on POSIX-gated os.kill probe
This commit is contained in:
parent
f041c95b7f
commit
76173ba8cd
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ def _sidecar_pid_alive(pid: Any) -> bool:
|
|||
pass
|
||||
if os.name == "posix":
|
||||
try:
|
||||
os.kill(pid_int, 0)
|
||||
os.kill(pid_int, 0) # windows-footgun: ok — inside os.name == "posix" guard
|
||||
except ProcessLookupError:
|
||||
return False
|
||||
except PermissionError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue