Skip to content

Commit

Permalink
MS-4593| Prevents test command to kill wrong processes (#3971)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsmawi authored and danepowell committed Jan 7, 2020
1 parent 593cfbf commit 1bbd249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Robo/Common/Executor.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function killProcessByPort($port) {
// phpcs:ignore
exec("command -v lsof && lsof -ti tcp:$port | xargs kill l 2>&1");
// phpcs:ignore
exec("pkill -f $port 2>&1");
exec("pkill -f :$port 2>&1");
}

/**
Expand Down

0 comments on commit 1bbd249

Please sign in to comment.