Command/Tender/ChildProcessContainer.php
public function start()
    {
        $cmd = 'app/console ' . $this->workerCommand;
        if ($this->tube != '') {
            $cmd .= ' --use-tube=' . escapeshellarg($this->tube);
        }
        if ($this->parent->isVerbose()) {
            $cmd .= ' -vvvv';
        }
        $this->startTime = time();
        $this->parent->verboseOutput('<info>Starting:</info>' . $cmd);
        $this->process = new Process('exec ' . $cmd, $this->consolePath, null, null, null);
        $this->process->start();
        if ($this->process->isRunning()) {
            $this->status = ChildProcessContainer::STATUS_ALIVE;
        } else {
            $this->status = ChildProcessContainer::STATUS_DEAD;
        }
    }
public function start()
    {
        $cmd = 'app/console ' . $this->workerCommand;
        if ($this->tube != '') {
            $cmd .= ' --use-tube=' . escapeshellarg($this->tube);
        }
        if ($this->parent->isVerbose()) {
            $cmd .= ' -vvvv';
        }
        $this->startTime = time();
        $this->parent->verboseOutput('<info>Starting:</info>' . $cmd);
        $this->process = new Process('exec ' . $cmd, $this->consolePath, null, null, null);
        $this->process->start();
        if ($this->process->isRunning()) {
            $this->status = ChildProcessContainer::STATUS_ALIVE;
        } else {
            $this->status = ChildProcessContainer::STATUS_DEAD;
        }
    }
public function start ( ) { $ cmd = 'app/console ' . $ this -> workerCommand ; if ( $ this -> tube != '' ) { $ cmd .= ' --use-tube=' . escapeshellarg ( $ this -> tube ) ; } if ( $ this -> parent -> isVerbose ( ) ) { $ cmd .= ' -vvvv' ; } $ this -> startTime = time ( ) ; $ this -> parent -> verboseOutput ( '<info>Starting:</info>' . $ cmd ) ; $ this -> process = new Process ( 'exec ' . $ cmd , $ this -> consolePath , null , null , null ) ; $ this -> process -> start ( ) ; if ( $ this -> process -> isRunning ( ) ) { $ this -> status = ChildProcessContainer :: STATUS_ALIVE ; } else { $ this -> status = ChildProcessContainer :: STATUS_DEAD ; } }
Starts the child process

@return void
Starts the child process