diff options
Diffstat (limited to 'tools/node.js')
-rw-r--r-- | tools/node.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/node.js b/tools/node.js index ecbf8d3e..8cd3e4be 100644 --- a/tools/node.js +++ b/tools/node.js @@ -1,3 +1,9 @@ +// workaround for tty output truncation upon process.exit() +[process.stdout, process.stderr].forEach(function(stream){ + if (stream._handle && stream._handle.setBlocking) + stream._handle.setBlocking(true); +}); + var path = require("path"); var fs = require("fs"); |