all-signals.js 1.5 KB

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