You are here

public function Process::hasBeenSignaled in Zircon Profile 8.0

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

Returns true if the child process has been terminated by an uncaught signal.

It always returns false on Windows.

Return value

bool

Throws

RuntimeException In case --enable-sigchild is activated

LogicException In case the process is not terminated

File

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

Class

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

Namespace

Symfony\Component\Process

Code

public function hasBeenSignaled() {
  $this
    ->requireProcessIsTerminated(__FUNCTION__);
  if ($this
    ->isSigchildEnabled()) {
    throw new RuntimeException('This PHP has been compiled with --enable-sigchild. Term signal can not be retrieved.');
  }
  $this
    ->updateStatus(false);
  return $this->processInformation['signaled'];
}