Skip to content

Commit

Permalink
Killing processes more effectively, in Pipelines.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed May 17, 2017
1 parent bc82d4a commit 940edd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Robo/Common/Executor.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public function killProcessByPort($port) {
// This is allowed to fail.
// @todo Replace with standardized call to Symfony Process.
exec("lsof -ti tcp:$port | xargs kill l 2>&1");
exec("pkill -f $port 2>&1");
}

/**
Expand Down

0 comments on commit 940edd8

Please sign in to comment.