protected function Process::updateOutput

Updates the current output of the process (STDOUT).

1 call to Process::updateOutput()
Process::getOutput in drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php
Returns the current output of the process (STDOUT).

File

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

Class

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

Namespace

Symfony\Component\Process

Code

protected function updateOutput() {
  if (defined('PHP_WINDOWS_VERSION_BUILD') && isset($this->fileHandles[self::STDOUT]) && is_resource($this->fileHandles[self::STDOUT])) {
    fseek($this->fileHandles[self::STDOUT], $this->readBytes[self::STDOUT]);
    $this
      ->addOutput(stream_get_contents($this->fileHandles[self::STDOUT]));
  }
  elseif (isset($this->pipes[self::STDOUT]) && is_resource($this->pipes[self::STDOUT])) {
    $this
      ->addOutput(stream_get_contents($this->pipes[self::STDOUT]));
  }
}