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

Method exit

lib/node-graceful.ts:87–95  ·  view source on GitHub ↗
(code?: number | string, signal = 'SIGTERM')

Source from the content-addressed store, hash-verified

85 }
86
87 public static exit(code?: number | string, signal = 'SIGTERM') {
88 const exitSignal = typeof code === 'string' ? code : signal;
89
90 if (typeof code === 'number') {
91 process.exitCode = code;
92 }
93
94 Graceful.onDeadlyEvent(exitSignal, {reason: 'Manual call to Graceful.exit()'});
95 }
96
97 private static onDeadlyEvent(signal: string, details?: object) {
98 // console.log(signal, details);

Callers 15

getParserMethod · 0.80
signalHandlerFunction · 0.80
uncaughtHandlerFunction · 0.80
app.tsFile · 0.80
mainFunction · 0.80
_handle_exceptionsFunction · 0.80
mainFunction · 0.80

Calls 1

onDeadlyEventMethod · 0.80

Tested by

no test coverage detected