MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / _kill_process_group

Function _kill_process_group

src/tool_system/tools/bash/bash_tool.py:48–59  ·  view source on GitHub ↗
(pid: int, sig: int)

Source from the content-addressed store, hash-verified

46
47
48def _kill_process_group(pid: int, sig: int) -> None:
49 try:
50 if _sys_mod.platform == "win32":
51 # No setpgid on Windows; just kill the process itself.
52 _os_mod.kill(pid, sig)
53 else:
54 _os_mod.killpg(_os_mod.getpgid(pid), sig)
55 except (ProcessLookupError, PermissionError, OSError):
56 # Already gone (race vs. natural exit) or insufficient
57 # privileges — fall through to subprocess.wait() which will
58 # surface the right state.
59 pass
60
61
62def _run_bash_with_abort(

Callers 1

_run_bash_with_abortFunction · 0.70

Calls 1

killMethod · 0.45

Tested by

no test coverage detected