mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
Utils: remove useless typecasts
This commit is contained in:
parent
da3742b39e
commit
79acaa3253
@ -543,7 +543,7 @@ class Utils{
|
|||||||
}
|
}
|
||||||
switch(Utils::getOS()){
|
switch(Utils::getOS()){
|
||||||
case "win":
|
case "win":
|
||||||
exec("taskkill.exe /F /PID " . ((int) $pid) . " > NUL");
|
exec("taskkill.exe /F /PID $pid > NUL");
|
||||||
break;
|
break;
|
||||||
case "mac":
|
case "mac":
|
||||||
case "linux":
|
case "linux":
|
||||||
@ -551,7 +551,7 @@ class Utils{
|
|||||||
if(function_exists("posix_kill")){
|
if(function_exists("posix_kill")){
|
||||||
posix_kill($pid, 9); //SIGKILL
|
posix_kill($pid, 9); //SIGKILL
|
||||||
}else{
|
}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