mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-09 08:21:50 +00:00
fix(pty-bridge): mark os.killpg/getpgid windows-footgun-ok (POSIX-only module)
This commit is contained in:
parent
8cb1908e18
commit
cb13723f53
1 changed files with 2 additions and 2 deletions
|
|
@ -251,7 +251,7 @@ class PtyBridge:
|
|||
self._closed = True
|
||||
|
||||
try:
|
||||
pgid = os.getpgid(self._proc.pid)
|
||||
pgid = os.getpgid(self._proc.pid) # windows-footgun: ok — POSIX-only module (imports fcntl/termios/ptyprocess at top)
|
||||
except Exception:
|
||||
pgid = None
|
||||
|
||||
|
|
@ -264,7 +264,7 @@ class PtyBridge:
|
|||
break
|
||||
try:
|
||||
if pgid is not None:
|
||||
os.killpg(pgid, sig)
|
||||
os.killpg(pgid, sig) # windows-footgun: ok — POSIX-only module (imports fcntl/termios/ptyprocess at top)
|
||||
else:
|
||||
self._proc.kill(sig)
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue