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

Function terminateSpawnedDetachedProcess

apps/cli/src/daemon.ts:179–184  ·  view source on GitHub ↗
(
  child: SpawnedDetachedProcess,
)

Source from the content-addressed store, hash-verified

177 });
178
179export const terminateSpawnedDetachedProcess = (
180 child: SpawnedDetachedProcess,
181): Effect.Effect<void, Error> =>
182 process.platform === "win32"
183 ? signalPid(child.pid)
184 : signalPid(-child.pid).pipe(Effect.catch(() => signalPid(child.pid)));
185
186const waitForCondition = <E, R>(input: {
187 readonly check: Effect.Effect<boolean, E, R>;

Callers 2

daemon.test.tsFile · 0.90
spawnDaemonAsLockHolderFunction · 0.90

Calls 1

signalPidFunction · 0.85

Tested by

no test coverage detected