diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-02-01 06:40:57 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-02-08 07:10:50 +0800 |
commit | 041424f87cf7cb75e6b509e86411fa833c4c2dd8 (patch) | |
tree | 64b0cc0da981b398eda7c41e9a2b7f27226d74b2 /lib/internal/async_hooks.js | |
parent | b4e670dc26b50271457a257ccb244b14ff323b64 (diff) | |
download | android-node-v8-041424f87cf7cb75e6b509e86411fa833c4c2dd8.tar.gz android-node-v8-041424f87cf7cb75e6b509e86411fa833c4c2dd8.tar.bz2 android-node-v8-041424f87cf7cb75e6b509e86411fa833c4c2dd8.zip |
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: https://github.com/nodejs/node/pull/25859
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'lib/internal/async_hooks.js')
0 files changed, 0 insertions, 0 deletions