MCPcopy Index your code
hub / github.com/codeaashu/claude-code / sigintHandler

Function sigintHandler

src/cli/print.ts:1027–1033  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1025 // gracefulShutdown persists session state and flushes analytics, with a
1026 // failsafe timer that force-exits if cleanup hangs.
1027 const sigintHandler = () => {
1028 logForDiagnosticsNoPII('info', 'shutdown_signal', { signal: 'SIGINT' })
1029 if (abortController && !abortController.signal.aborted) {
1030 abortController.abort()
1031 }
1032 void gracefulShutdown(0)
1033 }
1034 process.on('SIGINT', sigintHandler)
1035
1036 // Dump run()'s state at SIGTERM so a stuck session's healthsweep can name

Callers

nothing calls this directly

Calls 2

logForDiagnosticsNoPIIFunction · 0.85
gracefulShutdownFunction · 0.85

Tested by

no test coverage detected