We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e20ba commit 7db1fb6Copy full SHA for 7db1fb6
csslint.txt
src/cli/node.js
@@ -11,11 +11,19 @@ cli({
11
12
print: function(message){
13
fs.writeSync(1, message + "\n");
14
- fs.fsyncSync(1);
15
},
16
17
quit: function(code){
18
- process.exit(code || 0);
+
+ //Workaround for https://github.com/joyent/node/issues/1669
19
+ var flushed = process.stdout.flush()
20
+ if (!flushed) {
21
+ process.once("drain", function () {
22
+ process.exit(code || 0)
23
+ });
24
+ } else {
25
+ process.exit(code || 0);
26
+ }
27
28
29
isDirectory: function(name){
@@ -63,3 +71,4 @@ cli({
63
71
return fs.readFileSync(filename, "utf-8");
64
72
}
65
73
});
74
0 commit comments