MCPcopy Create free account
hub / github.com/kentcdodds/kcd-scripts / handleSignal

Function handleSignal

src/run-script.js:104–119  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

102}
103
104function handleSignal(result) {
105 if (result.signal === 'SIGKILL') {
106 console.log(
107 `The script "${script}" failed because the process exited too early. ` +
108 'This probably means the system ran out of memory or someone called ' +
109 '`kill -9` on the process.',
110 )
111 } else if (result.signal === 'SIGTERM') {
112 console.log(
113 `The script "${script}" failed because the process exited too early. ` +
114 'Someone might have called `kill` or `killall`, or the system could ' +
115 'be shutting down.',
116 )
117 }
118 process.exit(1)
119}
120
121function attemptResolve(...resolveArgs) {
122 try {

Callers 1

spawnScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…