public function Process::hasBeenSignaled

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

It always returns false on Windows.

@api

Return value

Boolean

Throws

RuntimeException In case --enable-sigchild is activated

File

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

Class

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

Namespace

Symfony\Component\Process

Code

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