lib/Pagon/ChildProcess.php
protected function childInitialize(array $options = array())
    {
        $this->prepared = false;
        $this->removeAllListeners();
        $this->master = false;
        $pid = posix_getpid();
        $this->ppid = $this->pid;
        $this->pid = $pid;
        $this->queue = null;
        $this->process = new Process($this, $this->pid, $this->ppid);
        $this->children = array();
        $this->prepared = true;

        $options = $options + self::$child_options;

        $this->childProcessOptions($options);
    }
protected function childInitialize(array $options = array())
    {
        $this->prepared = false;
        $this->removeAllListeners();
        $this->master = false;
        $pid = posix_getpid();
        $this->ppid = $this->pid;
        $this->pid = $pid;
        $this->queue = null;
        $this->process = new Process($this, $this->pid, $this->ppid);
        $this->children = array();
        $this->prepared = true;

        $options = $options + self::$child_options;

        $this->childProcessOptions($options);
    }
protected function childInitialize ( array $ options = array ( ) ) { $ this -> prepared = false ; $ this -> removeAllListeners ( ) ; $ this -> master = false ; $ pid = posix_getpid ( ) ; $ this -> ppid = $ this -> pid ; $ this -> pid = $ pid ; $ this -> queue = null ; $ this -> process = new Process ( $ this , $ this -> pid , $ this -> ppid ) ; $ this -> children = array ( ) ; $ this -> prepared = true ; $ options = $ options + self :: $ child_options ; $ this -> childProcessOptions ( $ options ) ; }
Init child process

@param array $options
Init child process