From 1bbd2494772a5178a82cf1d17eafc39cf58a1bc9 Mon Sep 17 00:00:00 2001 From: SMAWI Date: Tue, 7 Jan 2020 21:24:31 +0100 Subject: [PATCH] MS-4593| Prevents test command to kill wrong processes (#3971) --- src/Robo/Common/Executor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Robo/Common/Executor.php b/src/Robo/Common/Executor.php index 253e442d7..5283664bb 100644 --- a/src/Robo/Common/Executor.php +++ b/src/Robo/Common/Executor.php @@ -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"); } /**