mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
The 'exit' event on a ChildProcess doesn't necessarily occur before all the 'data' events on its stdio, so sometimes 'meteor mongo' didn't find the process. We should have been using the 'close' event. Switch from child_process.spawn to child_process.exec, which simplifies the code and uses the right event.