(signal: string)
| 157 | * bundled runtime it starts. |
| 158 | */ |
| 159 | export 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`. */ |
| 165 | export function signalKillMessage(signal: string): string { |
no outgoing calls
no test coverage detected