Skip to content

Commit

Permalink
Merge pull request #12 from csnover/fix-sigterm
Browse files Browse the repository at this point in the history
Fix reporting exit code 143 as an error closing Sauce Connect
  • Loading branch information
bermi committed Jul 24, 2013
2 parents 89e3b89 + 2049501 commit c37ec71
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/sauce-connect-launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c37ec71

Please sign in to comment.