lib: move signal event handling into bootstrap/node.js · nodejs/node@8ade433 · GitHub
Skip to content

Commit 8ade433

Browse files
joyeecheungtargos
authored andcommitted
lib: move signal event handling into bootstrap/node.js
Moves the `process.on()` and `promise.emit()` calls happened during bootstrap for signal events into `bootstrap/node.js` so it's easier to tell the side effects. Drive-by changes: - Moves the signal event re-arming to a point later during the bootstrap - as early as it were it's unlikely that there could be any existing signal events to re-arm for node-report. - Use a Map instead of an Object for signal wraps since it is used as a deletable dictionary anyway. PR-URL: #25859 Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 5de1034 commit 8ade433

2 files changed

Lines changed: 44 additions & 29 deletions

File tree

lib/internal/bootstrap/node.js

Lines changed: 17 additions & 3 deletions

lib/internal/process/main_thread_only.js

Lines changed: 27 additions & 26 deletions

0 commit comments

Comments
 (0)