public function Process::getTermSignal

Returns the number of the signal that caused the child process to terminate its execution.

It is only meaningful if hasBeenSignaled() returns true.

@api

Return value

integer

Throws

RuntimeException In case --enable-sigchild is activated

File

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

Class

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

Namespace

Symfony\Component\Process

Code

public function getTermSignal() {
  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['termsig'];
}