mirror of
https://github.com/appium/appium.git
synced 2026-04-24 12:28:51 -05:00
Merge pull request #3044 from tonetheman/chromedriverKill
ps in kill chromedriver added -f switch and moved awk to since pid will...
This commit is contained in:
@@ -58,8 +58,8 @@ Chromedriver.prototype.killOldChromedrivers = function (cb) {
|
||||
")" +
|
||||
")";
|
||||
} else {
|
||||
cmd = "ps -e | grep " + this.chromedriver + " | grep -v grep |" +
|
||||
"grep -e '--port=" + this.proxyPort + "$' | awk '{ print $1 }' | " +
|
||||
cmd = "ps -ef | grep " + this.chromedriver + " | grep -v grep |" +
|
||||
"grep -e '--port=" + this.proxyPort + "$' | awk '{ print $2 }' | " +
|
||||
"xargs kill -15";
|
||||
}
|
||||
logger.debug("Killing any old chromedrivers, running: " + cmd);
|
||||
|
||||
Reference in New Issue
Block a user