/
snap
/
node
/
11691
/
lib
/
node_modules
/
npm
/
node_modules
/
signal-exit
/
dist
/
cjs
/
/snap/node/11691/lib/node_modules/npm/node_modules/signal-exit/dist/cjs
mkdir
upload
Name
Size
Mode
Actions
browser.js
322
0644
edit
dl
rm
index.js
9432
0644
edit
dl
rm
package.json
25
0644
edit
dl
rm
signals.js
1560
0644
edit
dl
rm
Edit:
/snap/node/11691/lib/node_modules/npm/node_modules/signal-exit/dist/cjs/signals.js
(1560B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.signals = void 0; /** * This is not the set of all possible signals. * * It IS, however, the set of all signals that trigger * an exit on either Linux or BSD systems. Linux is a * superset of the signal names supported on BSD, and * the unknown signals just fail to register, so we can * catch that easily enough. * * Windows signals are a different set, since there are * signals that terminate Windows processes, but don't * terminate (or don't even exist) on Posix systems. * * Don't bother with SIGKILL. It's uncatchable, which * means that we can't fire any callbacks anyway. * * If a user does happen to register a handler on a non- * fatal signal like SIGWINCH or something, and then * exit, it'll end up firing `process.emit('exit')`, so * the handler will be fired anyway. * * SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised * artificially, inherently leave the process in a * state from which it is not safe to try and enter JS * listeners. */ exports.signals = []; exports.signals.push('SIGHUP', 'SIGINT', 'SIGTERM'); if (process.platform !== 'win32') { exports.signals.push('SIGALRM', 'SIGABRT', 'SIGVTALRM', 'SIGXCPU', 'SIGXFSZ', 'SIGUSR2', 'SIGTRAP', 'SIGSYS', 'SIGQUIT', 'SIGIOT' // should detect profiler and enable/disable accordingly. // see #21 // 'SIGPROF' ); } if (process.platform === 'linux') { exports.signals.push('SIGIO', 'SIGPOLL', 'SIGPWR', 'SIGSTKFLT'); } //# sourceMappingURL=signals.js.map
Save
cmd:
run