[Pkg-javascript-commits] [uglifyjs] 146/190: Workaround for process.exit() tty output truncation.
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Aug 7 23:17:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to annotated tag upstream/2.7.0
in repository uglifyjs.
commit d2945744f2dd569f4390d3bf3065e8a4e71fbf47
Author: kzc <zaxxon2011 at gmail.com>
Date: Sun May 1 00:59:29 2016 -0400
Workaround for process.exit() tty output truncation.
Fixes #1055
---
tools/node.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/node.js b/tools/node.js
index ecbf8d3..8cd3e4b 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");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list