From 0108888450e094263934b6f5959ba0cbc8873bff Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 2 Oct 2021 17:23:26 +0100 Subject: [PATCH] Process: silence taskkill complaining that it can't commit suicide since taskkill is a subprocess of the server process, it gets included in taskkill's own attempted killing spree, but taskkill (wisely) won't kill itself. --- src/utils/Process.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Process.php b/src/utils/Process.php index a24550c5c..8e93f9b1c 100644 --- a/src/utils/Process.php +++ b/src/utils/Process.php @@ -132,7 +132,7 @@ final class Process{ } switch(Utils::getOS()){ case Utils::OS_WINDOWS: - exec("taskkill.exe /F " . ($subprocesses ? "/T " : "") . "/PID $pid"); + exec("taskkill.exe /F " . ($subprocesses ? "/T " : "") . "/PID $pid > NUL 2> NUL"); break; case Utils::OS_MACOS: case Utils::OS_LINUX: