Workaround for process.exit() tty output truncation.

Fixes #1055
This commit is contained in:
kzc
2016-05-01 00:59:29 -04:00
committed by Richard van Velzen
parent 35bc716625
commit d2945744f2

View File

@@ -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");