1import constants from 'node:constants'; 2export const allSignals = 3// this is the full list of signals that Node will let us do anything with 4Object.keys(constants).filter(k => k.startsWith('SIG') && 5 // https://github.com/tapjs/signal-exit/issues/21 6 k !== 'SIGPROF' && 7 // no sense trying to listen for SIGKILL, it's impossible 8 k !== 'SIGKILL'); 9// These are some obscure signals that are reported by kill -l 10// on macOS, Linux, or Windows, but which don't have any mapping 11// in Node.js. No sense trying if they're just going to throw 12// every time on every platform. 13// 14// 'SIGEMT', 15// 'SIGLOST', 16// 'SIGPOLL', 17// 'SIGRTMAX', 18// 'SIGRTMAX-1', 19// 'SIGRTMAX-10', 20// 'SIGRTMAX-11', 21// 'SIGRTMAX-12', 22// 'SIGRTMAX-13', 23// 'SIGRTMAX-14', 24// 'SIGRTMAX-15', 25// 'SIGRTMAX-2', 26// 'SIGRTMAX-3', 27// 'SIGRTMAX-4', 28// 'SIGRTMAX-5', 29// 'SIGRTMAX-6', 30// 'SIGRTMAX-7', 31// 'SIGRTMAX-8', 32// 'SIGRTMAX-9', 33// 'SIGRTMIN', 34// 'SIGRTMIN+1', 35// 'SIGRTMIN+10', 36// 'SIGRTMIN+11', 37// 'SIGRTMIN+12', 38// 'SIGRTMIN+13', 39// 'SIGRTMIN+14', 40// 'SIGRTMIN+15', 41// 'SIGRTMIN+16', 42// 'SIGRTMIN+2', 43// 'SIGRTMIN+3', 44// 'SIGRTMIN+4', 45// 'SIGRTMIN+5', 46// 'SIGRTMIN+6', 47// 'SIGRTMIN+7', 48// 'SIGRTMIN+8', 49// 'SIGRTMIN+9', 50// 'SIGSTKFLT', 51// 'SIGUNUSED', 52//# sourceMappingURL=all-signals.js.map