You are here

protected function AbstractPipes::hasSystemCallBeenInterrupted 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::hasSystemCallBeenInterrupted()

Returns true if a system call has been interrupted.

Return value

bool

2 calls to AbstractPipes::hasSystemCallBeenInterrupted()
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 48

Class

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

Namespace

Symfony\Component\Process\Pipes

Code

protected function hasSystemCallBeenInterrupted() {
  $lastError = error_get_last();

  // stream_select returns false when the `select` system call is interrupted by an incoming signal
  return isset($lastError['message']) && false !== stripos($lastError['message'], 'interrupted system call');
}