mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 00:25:04 +00:00
Merge branch 'stable'
This commit is contained in:
@ -126,7 +126,7 @@ final class Process{
|
||||
}
|
||||
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":
|
||||
@ -134,7 +134,7 @@ final class Process{
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user