Merge remote-tracking branch 'origin/legacy/pm4' into stable

This commit is contained in:
Dylan K. Taylor
2023-07-21 11:07:32 +01:00
9 changed files with 23 additions and 10 deletions

View File

@ -125,7 +125,10 @@ final class Process{
return count(ThreadManager::getInstance()->getAll()) + 2; //MainLogger + Main Thread
}
public static function kill(int $pid, bool $subprocesses) : void{
/**
* @param bool $subprocesses @deprecated
*/
public static function kill(int $pid, bool $subprocesses = false) : void{
$logger = \GlobalLogger::get();
if($logger instanceof MainLogger){
$logger->syncFlushBuffer();