[Pkg-javascript-commits] [uglifyjs] 430/491: handle VM failure gracefully (#2791)
Jonas Smedegaard
dr at jones.dk
Wed Feb 14 19:52:01 UTC 2018
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.
commit ec7cd1dcf7c7a3b86288061b61ad72ba081f83bb
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date: Mon Jan 15 23:41:39 2018 +0800
handle VM failure gracefully (#2791)
---
test/travis-ufuzz.js | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/test/travis-ufuzz.js b/test/travis-ufuzz.js
index 8685732..579b744 100644
--- a/test/travis-ufuzz.js
+++ b/test/travis-ufuzz.js
@@ -42,21 +42,26 @@ if (process.argv.length > 2) {
"test/ufuzz"
], {
stdio: [ "ignore", "pipe", "pipe" ]
+ }).on("exit", function() {
+ console.log(line);
+ clearInterval(keepAlive);
+ clearTimeout(timer);
});
var line = "";
child.stdout.on("data", function(data) {
line += data;
});
child.stderr.on("data", function() {
- process.exitCode = (process.exitCode || 0) + 1;
+ process.exitCode = 1;
}).pipe(process.stdout);
var keepAlive = setInterval(function() {
var end = line.lastIndexOf("\r");
console.log(line.slice(line.lastIndexOf("\r", end - 1) + 1, end));
line = line.slice(end + 1);
}, ping);
- setTimeout(function() {
+ var timer = setTimeout(function() {
clearInterval(keepAlive);
+ child.removeAllListeners("exit");
child.kill();
}, period);
}
--
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