diff options
author | kzc <zaxxon2011@gmail.com> | 2016-05-01 00:59:29 -0400 |
---|---|---|
committer | Richard van Velzen <rvanvelzen@experty.com> | 2016-05-04 20:04:48 +0200 |
commit | d2945744f2dd569f4390d3bf3065e8a4e71fbf47 (patch) | |
tree | ee73cb2fcbf678a44adcaddd3156917f401affed /tools | |
parent | 35bc71662574d6bd537d0460d14e738ae4d3bb19 (diff) | |
download | tracifyjs-d2945744f2dd569f4390d3bf3065e8a4e71fbf47.tar.gz tracifyjs-d2945744f2dd569f4390d3bf3065e8a4e71fbf47.zip |
Workaround for process.exit() tty output truncation.
Fixes #1055
Diffstat (limited to 'tools')
-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"); |