mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
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:
parent
dd0c2fed82
commit
0108888450
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user