MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / stop_process

Function stop_process

scripts/test_mcp_interactive.py:312–320  ·  view source on GitHub ↗
(process: subprocess.Popen[bytes])

Source from the content-addressed store, hash-verified

310
311
312def stop_process(process: subprocess.Popen[bytes]) -> None:
313 if process.poll() is not None:
314 return
315 process.terminate()
316 try:
317 process.wait(timeout=2)
318 except subprocess.TimeoutExpired:
319 process.kill()
320 process.wait(timeout=2)
321
322
323def main() -> int:

Callers 1

mainFunction · 0.85

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected