public function exitWorkerManager(int $sig, array $pid): void
    {
        $this->logger->debug('fork manager ['.$pid['pid'].'] exit with ['.$sig.']', [
            'category' => get_class($this),
        ]);

        pcntl_waitpid($pid['pid'], $status, WNOHANG | WUNTRACED);
        $this->cleanup(SIGTERM);
    }
public function exitWorkerManager(int $sig, array $pid): void
    {
        $this->logger->debug('fork manager ['.$pid['pid'].'] exit with ['.$sig.']', [
            'category' => get_class($this),
        ]);

        pcntl_waitpid($pid['pid'], $status, WNOHANG | WUNTRACED);
        $this->cleanup(SIGTERM);
    }
public function exitWorkerManager ( int $ sig , array $ pid ) : void { $ this -> logger -> debug ( 'fork manager [' . $ pid [ 'pid' ] . '] exit with [' . $ sig . ']' , [ 'category' => get_class ( $ this ) , ] ) ; pcntl_waitpid ( $ pid [ 'pid' ] , $ status , WNOHANG | WUNTRACED ) ; $ this -> cleanup ( SIGTERM ) ; }
Wait for worker manager.
Wait for worker manager .