protected function saveCurrentPID()
    {
        $pid = getmypid();
        $this->setConfig('runtime.pid', $pid);
        $filename = self::getLogPath() . "pid.log";

        if (is_writable($filename)) {
            return @file_put_contents($filename, $pid);
        }

        return false;
    }
protected function saveCurrentPID()
    {
        $pid = getmypid();
        $this->setConfig('runtime.pid', $pid);
        $filename = self::getLogPath() . "pid.log";

        if (is_writable($filename)) {
            return @file_put_contents($filename, $pid);
        }

        return false;
    }
protected function saveCurrentPID ( ) { $ pid = getmypid ( ) ; $ this -> setConfig ( 'runtime.pid' , $ pid ) ; $ filename = self :: getLogPath ( ) . "pid.log" ; if ( is_writable ( $ filename ) ) { return @ file_put_contents ( $ filename , $ pid ) ; } return false ; }
Save the latest PHP process ID as a temp file in case an infinite loop
or any unexpected error breaks the server and prevents Strata
from closing it automatically.
@return boolean
Save the latest PHP process ID as a temp file in case an infinite loop or any unexpected error breaks the server and prevents Strata from closing it automatically .