protected function initWorkerManager()
    {
        $pid = pcntl_fork();
        $this->manager_pid = $pid;

        if (-1 === $pid) {
            throw new SpawnForkException('failed to spawn fork manager');
        }

        if (!$pid) {
            $manager = $this->factory->buildManager();
            $manager->process();
            exit();
        }
    }
protected function initWorkerManager()
    {
        $pid = pcntl_fork();
        $this->manager_pid = $pid;

        if (-1 === $pid) {
            throw new SpawnForkException('failed to spawn fork manager');
        }

        if (!$pid) {
            $manager = $this->factory->buildManager();
            $manager->process();
            exit();
        }
    }
protected function initWorkerManager ( ) { $ pid = pcntl_fork ( ) ; $ this -> manager_pid = $ pid ; if ( - 1 === $ pid ) { throw new SpawnForkException ( 'failed to spawn fork manager' ) ; } if ( ! $ pid ) { $ manager = $ this -> factory -> buildManager ( ) ; $ manager -> process ( ) ; exit ( ) ; } }
Fork a worker manager.
Fork a worker manager .