/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib
// copied from signal-exit // 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. // // 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. const platform = global.__ARBORIST_FAKE_PLATFORM__ || process.platform module.exports = [ 'SIGABRT', 'SIGALRM', 'SIGHUP', 'SIGINT', 'SIGTERM', ] if (platform !== 'win32') { module.exports.push( 'SIGVTALRM', 'SIGXCPU', 'SIGXFSZ', 'SIGUSR2', 'SIGTRAP', 'SIGSYS', 'SIGQUIT', 'SIGIOT' // should detect profiler and enable/disable accordingly. // see #21 // 'SIGPROF' ) } if (platform === 'linux') { module.exports.push( 'SIGIO', 'SIGPOLL', 'SIGPWR', 'SIGSTKFLT', 'SIGUNUSED' ) }
.
Edit
..
Edit
add-rm-pkg-deps.js
Edit
arborist
Edit
audit-report.js
Edit
calc-dep-flags.js
Edit
can-place-dep.js
Edit
case-insensitive-map.js
Edit
consistent-resolve.js
Edit
debug.js
Edit
deepest-nesting-target.js
Edit
dep-valid.js
Edit
diff.js
Edit
edge.js
Edit
from-path.js
Edit
gather-dep-set.js
Edit
get-workspace-nodes.js
Edit
index.js
Edit
inventory.js
Edit
link.js
Edit
node.js
Edit
optional-set.js
Edit
override-resolves.js
Edit
override-set.js
Edit
peer-entry-sets.js
Edit
place-dep.js
Edit
printable.js
Edit
query-selector-all.js
Edit
realpath.js
Edit
relpath.js
Edit
reset-dep-flags.js
Edit
retire-path.js
Edit
shrinkwrap.js
Edit
signal-handling.js
Edit
signals.js
Edit
spec-from-lock.js
Edit
tracker.js
Edit
tree-check.js
Edit
version-from-tgz.js
Edit
vuln.js
Edit
yarn-lock.js
Edit