Skip to content

The agent that grows with you

lint: suppress windows-footgun false positive on POSIX-gated os.kill probe

Teknium76173ba8cd18
diff --git a/plugins/platforms/photon/adapter.py b/plugins/platforms/photon/adapter.py
index 39f27db2292..60d74de41e2 100644
--- a/plugins/platforms/photon/adapter.py
+++ b/plugins/platforms/photon/adapter.py
@@ -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: