()
| 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 |
nothing calls this directly
no test coverage detected