MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / signalPid

Function signalPid

apps/cli/src/daemon.ts:168–177  ·  view source on GitHub ↗
(pid: number)

Source from the content-addressed store, hash-verified

166 });
167
168const signalPid = (pid: number): Effect.Effect<void, Error> =>
169 Effect.try({
170 try: () => {
171 process.kill(pid, "SIGTERM");
172 },
173 catch: (cause) =>
174 cause instanceof Error
175 ? cause
176 : new Error(`Failed to terminate daemon process ${pid}: ${String(cause)}`),
177 });
178
179export const terminateSpawnedDetachedProcess = (
180 child: SpawnedDetachedProcess,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected