MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / signalExitCode

Function signalExitCode

src/extraction/wasm-runtime-flags.ts:159–162  ·  view source on GitHub ↗
(signal: string)

Source from the content-addressed store, hash-verified

157 * bundled runtime it starts.
158 */
159export function signalExitCode(signal: string): number {
160 const number = (osConstants.signals as Record<string, number | undefined>)[signal];
161 return typeof number === 'number' ? 128 + number : 1;
162}
163
164/** What `codegraph` prints when the process it started was killed by `signal`. */
165export function signalKillMessage(signal: string): string {

Calls

no outgoing calls

Tested by

no test coverage detected