protected function Process::updateStatus

Updates the status of the process.

11 calls to Process::updateStatus()

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php, line 1156

Class

Process
Process is a thin wrapper around proc_* functions to ease start independent PHP processes.

Namespace

Symfony\Component\Process

Code

protected function updateStatus() {
  if (self::STATUS_STARTED !== $this->status) {
    return;
  }
  $this->processInformation = proc_get_status($this->process);
  if (!$this->processInformation['running']) {
    $this->status = self::STATUS_TERMINATED;
    if (-1 !== $this->processInformation['exitcode']) {
      $this->exitcode = $this->processInformation['exitcode'];
    }
  }
}