child_process: Separate 'close' event from 'exit'
authorCharlie McConnell <charlie@charlieistheman.com>
Tue, 13 Mar 2012 23:04:00 +0000 (16:04 -0700)
committerisaacs <i@izs.me>
Fri, 16 Mar 2012 00:07:11 +0000 (17:07 -0700)
commitc7b8073afc018901a106564aaf6819b170a9538a
tree271a3a7ea30cde613c33bd438391ca09e26d890c
parent928ea564d16da47e615ddac627e0b4d4a40d8196
child_process: Separate 'close' event from 'exit'

Currently, a child process does not emit the 'exit' event until 'close' events
have been received on all three of the child's stdio streams.  This change makes
the child object emit 'exit' when the child exits, and a new 'close' event when
all stdio streams are closed.
lib/child_process.js
test/simple/test-child-process-buffering.js
test/simple/test-child-process-cwd.js
test/simple/test-child-process-stdin.js