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

Function force_kill

tests/test_daemon_open_readiness.py:51–57  ·  view source on GitHub ↗
(pid)

Source from the content-addressed store, hash-verified

49
50
51def force_kill(pid):
52 if not pid:
53 return
54 if os.name == "nt":
55 subprocess.run(["taskkill", "/F", "/PID", str(pid)], capture_output=True, timeout=30)
56 else:
57 subprocess.run(["kill", "-9", str(pid)], capture_output=True, timeout=30)
58
59
60def stop_daemon(binary, env, pid):

Callers 1

stop_daemonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected