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

Function unixSignalExitCode

packages/utils/src/lib/exit-process.ts:7–8  ·  view source on GitHub ↗
(signalNumber: number)

Source from the content-addressed store, hash-verified

5// https://www.gnu.org/software/bash/manual/html_node/Exit-Status.html#:~:text=When%20a%20command%20terminates%20on%20a%20fatal%20signal%20whose%20number%20is%20N%2C%20Bash%20uses%20the%20value%20128%2BN%20as%20the%20exit%20status.
6const UNIX_SIGNAL_EXIT_CODE_OFFSET = 128;
7const unixSignalExitCode = (signalNumber: number) =>
8 UNIX_SIGNAL_EXIT_CODE_OFFSET + signalNumber;
9
10const SIGINT_CODE = 2;
11const SIGTERM_CODE = 15;

Callers 1

SIGNAL_EXIT_CODESFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected