MCPcopy Create free account
hub / github.com/anomalyco/opencode / attachSigint

Function attachSigint

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

Source from the content-addressed store, hash-verified

283 }
284
285 const attachSigint = () => {
286 if (closed || sigintRegistered) {
287 return
288 }
289
290 process.on("SIGINT", sigint)
291 sigintRegistered = true
292 }
293
294 const detachSigint = () => {
295 if (!sigintRegistered) {

Callers 1

createRuntimeLifecycleFunction · 0.85

Calls 1

onMethod · 0.80

Tested by

no test coverage detected