MCPcopy
hub / github.com/anomalyco/opencode / detachSigint

Function detachSigint

packages/opencode/src/cli/cmd/run/runtime.lifecycle.ts:294–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292 }
293
294 const detachSigint = () => {
295 if (!sigintRegistered) {
296 return
297 }
298
299 process.off("SIGINT", sigint)
300 sigintRegistered = false
301 }
302
303 attachSigint()
304

Callers 2

createRuntimeLifecycleFunction · 0.85
closeFunction · 0.85

Calls 1

offMethod · 0.80

Tested by

no test coverage detected