public function closingProcessByProcessId()
 {
     Process::getProcessById(getmypid())->close();
 }
Exemple #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;
 }
 /**
  * Retrieve the executable associated with this runtime.
  *
  * @return  lang.Process
  */
 public function getExecutable()
 {
     if (NULL === $this->executable) {
         // Lazy-init
         $this->executable = Process::getProcessById(getmypid(), getenv('XP_RT'));
     }
     return $this->executable;
 }