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

Function force_kill

tests/windows/test_daemon_lifecycle.py:53–59  ·  view source on GitHub ↗
(pid)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 2

strFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected