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

Function kill_pid

tests/windows/test_daemon_stability.py:119–125  ·  view source on GitHub ↗
(pid)

Source from the content-addressed store, hash-verified

117
118
119def kill_pid(pid):
120 if not pid:
121 return
122 if os.name == "nt":
123 subprocess.run(["taskkill", "/F", "/PID", str(pid)], capture_output=True, timeout=30)
124 else:
125 subprocess.run(["kill", "-9", str(pid)], capture_output=True, timeout=30)
126
127
128def pid_from(text):

Calls 2

strFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected