MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / signalHandler

Function signalHandler

app.ts:48–53  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

46process.on('SIGQUIT', signalHandler('SIGQUIT'));
47
48function signalHandler(name: string) {
49 return () => {
50 logger.info(`stopping process: ${name}`);
51 process.exit(0);
52 };
53}
54
55function uncaughtHandler(err: Error, origin: NodeJS.UncaughtExceptionOrigin) {
56 logger.error(`stopping process: Uncaught exception (origin: ${origin}):`, err);

Callers 1

app.tsFile · 0.85

Calls 1

exitMethod · 0.80

Tested by

no test coverage detected