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

Function signal

packages/cli/src/services/daemon.ts:80–81  ·  view source on GitHub ↗
(pid: number, signal: NodeJS.Signals)

Source from the content-addressed store, hash-verified

78 })
79
80 const signal = (pid: number, signal: NodeJS.Signals) =>
81 Effect.try({ try: () => process.kill(pid, signal), catch: (cause) => cause }).pipe(Effect.ignore)
82
83 const awaitStopped = Effect.fnUntraced(function* (pid: number) {
84 const running = yield* Effect.try({ try: () => process.kill(pid, 0), catch: () => false }).pipe(

Callers 1

daemon.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected