« Previous | Next » 

Revision 212466be

ID212466bea23a8f92153cec0d009175cd94c7360d
Parent 56668f54
Child 5070eccf

Added by Ben Noordhuis almost 12 years ago

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

View differences