We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6682673 commit 554f126Copy full SHA for 554f126
1 file changed
src/cli/node.js
@@ -19,7 +19,8 @@ cli({
19
quit: function(code){
20
21
//Workaround for https://github.com/joyent/node/issues/1669
22
- if (!process.stdout.flush || !process.stdout.flush()) {
+
23
+ if ((!process.stdout.flush || !process.stdout.flush()) && (parseFloat(process.versions.node) < 0.5)) {
24
process.once("drain", function () {
25
process.exit(code || 0);
26
});
0 commit comments