MCPcopy Index your code
hub / github.com/Effect-TS/effect / kill

Function kill

packages/platform-node-shared/src/internal/commandExecutor.ts:177–181  ·  view source on GitHub ↗
(signal = "SIGTERM")

Source from the content-addressed store, hash-verified

175 const isRunning = Effect.negate(Deferred.isDone(exitCodeDeferred))
176
177 const kill: CommandExecutor.Process["kill"] = (signal = "SIGTERM") =>
178 killProcessGroup(handle, signal).pipe(
179 Effect.orElse(() => killProcess(handle, signal)),
180 Effect.zipRight(Effect.asVoid(Deferred.await(exitCodeDeferred)))
181 )
182
183 const pid = CommandExecutor.ProcessId(handle.pid!)
184 const stderr = fromReadable<Error.PlatformError, Uint8Array>(

Callers

nothing calls this directly

Calls 3

killProcessFunction · 0.85
pipeMethod · 0.65
awaitMethod · 0.45

Tested by

no test coverage detected