You are here

protected function Process::updateStatus in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/process/Process.php \Symfony\Component\Process\Process::updateStatus()

Updates the status of the process, reads pipes.

Parameters

bool $blocking Whether to use a blocking read call.:

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

... See full list

File

vendor/symfony/process/Process.php, line 1299

Class

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

Namespace

Symfony\Component\Process

Code

protected function updateStatus($blocking) {
  if (self::STATUS_STARTED !== $this->status) {
    return;
  }
  $this->processInformation = proc_get_status($this->process);
  $this
    ->captureExitCode();
  $this
    ->readPipes($blocking, '\\' === DIRECTORY_SEPARATOR ? !$this->processInformation['running'] : true);
  if (!$this->processInformation['running']) {
    $this
      ->close();
  }
}