child_process.spawn now uses the close event #18

Open
wants to merge 1 commit into from

1 participant

@cojohn

child_process.spawn in Node.js versions prior to 0.7 use the exit event to signal that the child process has finished; newer versions use the close event. Listening to the exit event in version >= 0.7 will result in occasional data loss if the exit event fires before close.

@jscheid jscheid added a commit to waysact/webpack-closure-compiler that referenced this pull request Nov 18, 2015
@jscheid jscheid Listen for close event rather than exit
Listening to the exit event leads to occasional data loss.

See nateps/connect-gzip#18
64df777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment