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

Function _kill_process_group

src/tool_system/utils/ripgrep.py:93–103  ·  view source on GitHub ↗
(pid: int, sig: int)

Source from the content-addressed store, hash-verified

91
92
93def _kill_process_group(pid: int, sig: int) -> None:
94 try:
95 if sys.platform == "win32":
96 os.kill(pid, sig)
97 else:
98 os.killpg(os.getpgid(pid), sig)
99 except (ProcessLookupError, PermissionError, OSError):
100 # Already gone (race vs. natural exit) or insufficient privileges
101 # — fall through to ``proc.wait()`` which will surface the right
102 # state.
103 pass
104
105
106def _run_rg_with_abort(

Callers 1

_run_rg_with_abortFunction · 0.70

Calls 1

killMethod · 0.45

Tested by

no test coverage detected