Revision 212466be
ID | 212466bea23a8f92153cec0d009175cd94c7360d |
Parent | 56668f54 |
Child | 5070eccf |
child_process: make .fork()'d child auto-exit
A child process created with .fork() needed to call `process.exit()` explicitly
because the communication channel with the parent kept the event loop alive.
Fix that by only ref'ing the channel when there are 'message' event listeners.
Fixes #3799.
Files
- added
- modified
- copied
- renamed
- deleted