Ejemplo n.º 1
0
 public function closingProcessByProcessId()
 {
     Process::getProcessById(getmypid())->close();
 }
Ejemplo n.º 2
0
 /**
  * Retrieve the executable associated with this runtime.
  *
  * @return  lang.Process
  */
 public function getExecutable()
 {
     if (null === $this->executable) {
         // Lazy-init
         $this->executable = Process::getProcessById(getmypid(), defined('PHP_BINARY') ? constant('PHP_BINARY') : null);
     }
     return $this->executable;
 }