-
Notifications
You must be signed in to change notification settings - Fork 479
Closed
Description
The process never ends with an exit code other then 0, it seems the code in the 'drain' event is never executed because node exits before the event is fired. Should we block and wait for the event?
quit: function(code){
//Workaround for https://github.com/joyent/node/issues/1669
var flushed = process.stdout.flush();
if (!flushed) {
fs.writeSync(1, 'executes' + "\n");
process.once("drain", function () {
fs.writeSync(1, 'never executes' + "\n");
process.exit(code || 0);
});
} else {
fs.writeSync(1, 'never executes' + "\n");
process.exit(code || 0);
}
},
This is caused by the change in issue #176.