public function getPidfile()
    {
        $resource = false;

        if (isset($this->pidfile) && is_readable($this->pidfile)) {
            $resource = fopen($this->pidfile, 'r');
        }

        return $resource ? $resource : null;
    }
public function getPidfile()
    {
        $resource = false;

        if (isset($this->pidfile) && is_readable($this->pidfile)) {
            $resource = fopen($this->pidfile, 'r');
        }

        return $resource ? $resource : null;
    }
public function getPidfile ( ) { $ resource = false ; if ( isset ( $ this -> pidfile ) && is_readable ( $ this -> pidfile ) ) { $ resource = fopen ( $ this -> pidfile , 'r' ) ; } return $ resource ? $ resource : null ; }
Returns the location of the pid file.

@return mixed Read-only file resource, or null if there was an error opening the file
Returns the location of the pid file .