MCPcopy Index your code
hub / github.com/anomalyco/opencode / killOne

Function killOne

packages/core/src/cross-spawn-spawner.ts:314–322  ·  view source on GitHub ↗
(
    command: ChildProcess.StandardCommand,
    proc: NodeChildProcess.ChildProcess,
    signal: NodeJS.Signals,
  )

Source from the content-addressed store, hash-verified

312 }
313
314 const killOne = (
315 command: ChildProcess.StandardCommand,
316 proc: NodeChildProcess.ChildProcess,
317 signal: NodeJS.Signals,
318 ) =>
319 Effect.suspend(() => {
320 if (proc.kill(signal)) return Effect.void
321 return Effect.fail(toPlatformError("kill", new Error("Failed to kill child process"), command))
322 })
323
324 const timeout =
325 (

Callers 1

sendFunction · 0.85

Calls 1

toPlatformErrorFunction · 0.85

Tested by

no test coverage detected