From 633b1764dfeb5b83bd71ec32dd62079131c7cb2f Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Mon, 8 Sep 2014 15:24:00 +0900 Subject: [PATCH] Launch remote binaries with exec so that we don't leave the shell behind unnecessarily. --- lib/units/device/plugins/forward.js | 3 ++- lib/units/device/plugins/http.js | 3 ++- lib/units/device/plugins/touch.js | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/units/device/plugins/forward.js b/lib/units/device/plugins/forward.js index dccbf088..d8949175 100644 --- a/lib/units/device/plugins/forward.js +++ b/lib/units/device/plugins/forward.js @@ -38,7 +38,8 @@ module.exports = syrup.serial() .timeout(10000) .then(function() { return adb.shell(options.serial, [ - remote.bin + 'exec' + , remote.bin , '--lib', remote.lib , '--listen-forward', service.port ]) diff --git a/lib/units/device/plugins/http.js b/lib/units/device/plugins/http.js index 9346fb4e..129c92f3 100644 --- a/lib/units/device/plugins/http.js +++ b/lib/units/device/plugins/http.js @@ -30,7 +30,8 @@ module.exports = syrup.serial() .timeout(10000) .then(function() { return adb.shell(options.serial, [ - remote.bin + 'exec' + , remote.bin , '--lib', remote.lib , '--listen-http', service.port ]) diff --git a/lib/units/device/plugins/touch.js b/lib/units/device/plugins/touch.js index af12b337..ba87242a 100644 --- a/lib/units/device/plugins/touch.js +++ b/lib/units/device/plugins/touch.js @@ -29,7 +29,8 @@ module.exports = syrup.serial() .timeout(10000) .then(function() { return adb.shell(options.serial, [ - remote.bin + 'exec' + , remote.bin , '--lib', remote.lib , '--listen-input', service.port ])