mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Added output redirection to kill()
This commit is contained in:
parent
093bf3ddee
commit
3378c44542
@ -40,14 +40,14 @@ function kill($pid){
|
||||
switch(Utils::getOS()){
|
||||
case "win":
|
||||
ob_start();
|
||||
passthru("%WINDIR%\\System32\\taskkill.exe /F /PID ".((int) $pid));
|
||||
passthru("%WINDIR%\\System32\\taskkill.exe /F /PID ".((int) $pid)." > NUL");
|
||||
ob_end_clean();
|
||||
break;
|
||||
case "mac":
|
||||
case "linux":
|
||||
default:
|
||||
ob_start();
|
||||
passthru("kill -9 ".((int) $pid));
|
||||
passthru("kill -9 ".((int) $pid)." > /dev/null 2>&1");
|
||||
ob_end_clean();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user