MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / killProcess

Function killProcess

packages/agent-core/src/session/hooks/runner.ts:202–208  ·  view source on GitHub ↗
(child: ChildProcessWithoutNullStreams)

Source from the content-addressed store, hash-verified

200}
201
202function killProcess(child: ChildProcessWithoutNullStreams): void {
203 tryKillProcess(child, 'SIGTERM');
204 const killTimer = setTimeout(() => {
205 tryKillProcess(child, 'SIGKILL');
206 }, KILL_GRACE_MS);
207 killTimer.unref();
208}
209
210function tryKillProcess(child: ChildProcessWithoutNullStreams, signal: NodeJS.Signals): void {
211 if (process.platform === 'win32') {

Callers 2

runHookFunction · 0.85
onAbortFunction · 0.85

Calls 1

tryKillProcessFunction · 0.85

Tested by

no test coverage detected