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.
This commit is contained in:
Dylan K. Taylor 2021-10-02 17:23:26 +01:00
parent dd0c2fed82
commit 0108888450
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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: