MCPcopy Create free account
hub / github.com/code-pushup/cli / handler

Function handler

packages/utils/src/lib/exit-process.ts:95–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 const signalHandlers = (['SIGINT', 'SIGTERM', 'SIGQUIT'] as const).map(
94 signal => {
95 const handler = () => {
96 close(SIGNAL_EXIT_CODES()[signal], { kind: 'signal', signal });
97 if (exitOnSignal) {
98 // eslint-disable-next-line unicorn/no-process-exit,n/no-process-exit
99 process.exit(SIGNAL_EXIT_CODES()[signal]);
100 }
101 };
102 process.on(signal, handler);
103 return { signal, handler };
104 },

Callers

nothing calls this directly

Calls 2

closeFunction · 0.85
SIGNAL_EXIT_CODESFunction · 0.85

Tested by

no test coverage detected