MCPcopy Create free account
hub / github.com/angular/dev-infra / statusFromExitCodeAndSignal

Function statusFromExitCodeAndSignal

ng-dev/utils/child-process.ts:159–161  ·  view source on GitHub ↗

* Convert the provided exitCode and signal to a single status code. * * During `exit` node provides either a `code` or `signal`, one of which is guaranteed to be * non-null. * * For more details see: https://nodejs.org/api/child_process.html#child_process_event_exit

(exitCode: number | null, signal: NodeJS.Signals | null)

Source from the content-addressed store, hash-verified

157 * For more details see: https://nodejs.org/api/child_process.html#child_process_event_exit
158 */
159function statusFromExitCodeAndSignal(exitCode: number | null, signal: NodeJS.Signals | null) {
160 return exitCode ?? signal ?? -1;
161}
162
163/**
164 * Gets a process environment object with defaults that can be used for

Callers 2

spawnSyncFunction · 0.85
processAsyncCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected