You are here

protected function AbstractPipes::unblock in Zircon Profile 8

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

Unblocks streams.

2 calls to AbstractPipes::unblock()
UnixPipes::readAndWrite in vendor/symfony/process/Pipes/UnixPipes.php
Reads data in file handles and pipes.
WindowsPipes::write in vendor/symfony/process/Pipes/WindowsPipes.php
Writes input to stdin.

File

vendor/symfony/process/Pipes/AbstractPipes.php, line 59

Class

AbstractPipes
@author Romain Neutron <imprec@gmail.com>

Namespace

Symfony\Component\Process\Pipes

Code

protected function unblock() {
  if (!$this->blocked) {
    return;
  }
  foreach ($this->pipes as $pipe) {
    stream_set_blocking($pipe, 0);
  }
  if (null !== $this->input) {
    stream_set_blocking($this->input, 0);
  }
  $this->blocked = false;
}