protected function Process::updateStatus

Updates the status of the process.

11 calls to Process::updateStatus()
Process::getExitCode in drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php
Returns the exit code returned by the process.
Process::getPid in drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php
Returns the Pid (process identifier), if applicable.
Process::getStatus in drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php
Gets the process status.
Process::getStopSignal in drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php
Returns the number of the signal that caused the child process to stop its execution.
Process::getTermSignal in drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php
Returns the number of the signal that caused the child process to terminate its execution.

... See full list

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'];
    }
  }
}