From 2049501f0c9d323e3de36d3ff0cb210b0068346e Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 24 Jul 2013 19:51:35 +0000 Subject: [PATCH] Fix reporting exit code 143 as an error running Sauce Connect --- lib/sauce-connect-launcher.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/sauce-connect-launcher.js b/lib/sauce-connect-launcher.js index 6e26c66..dd3d0a6 100644 --- a/lib/sauce-connect-launcher.js +++ b/lib/sauce-connect-launcher.js @@ -180,6 +180,11 @@ function run(options, callback) { }); child.on("exit", function (code, signal) { + // Java exits with code 143 on SIGTERM; this is not an error, it comes from child.close + if (code === 143) { + return; + } + var message = "Closing Sauce Connect Tunnel"; if (code > 0) { message = "Could not start Sauce Connect. Exit code " + code + " signal: " + signal;