mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 20:07:09 +00:00
Utils: remove useless typecasts
This commit is contained in:
parent
da3742b39e
commit
79acaa3253
@ -543,7 +543,7 @@ class Utils{
|
||||
}
|
||||
switch(Utils::getOS()){
|
||||
case "win":
|
||||
exec("taskkill.exe /F /PID " . ((int) $pid) . " > NUL");
|
||||
exec("taskkill.exe /F /PID $pid > NUL");
|
||||
break;
|
||||
case "mac":
|
||||
case "linux":
|
||||
@ -551,7 +551,7 @@ class Utils{
|
||||
if(function_exists("posix_kill")){
|
||||
posix_kill($pid, 9); //SIGKILL
|
||||
}else{
|
||||
exec("kill -9 " . ((int) $pid) . " > /dev/null 2>&1");
|
||||
exec("kill -9 $pid > /dev/null 2>&1");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user