mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 21:35:21 +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()){
|
switch(Utils::getOS()){
|
||||||
case Utils::OS_WINDOWS:
|
case Utils::OS_WINDOWS:
|
||||||
exec("taskkill.exe /F " . ($subprocesses ? "/T " : "") . "/PID $pid");
|
exec("taskkill.exe /F " . ($subprocesses ? "/T " : "") . "/PID $pid > NUL 2> NUL");
|
||||||
break;
|
break;
|
||||||
case Utils::OS_MACOS:
|
case Utils::OS_MACOS:
|
||||||
case Utils::OS_LINUX:
|
case Utils::OS_LINUX:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user