You are here

public function Process::getStopSignal in Zircon Profile 8

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

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

It is only meaningful if hasBeenStopped() returns true.

Return value

int

Throws

LogicException In case the process is not terminated

File

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

Class

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

Namespace

Symfony\Component\Process

Code

public function getStopSignal() {
  $this
    ->requireProcessIsTerminated(__FUNCTION__);
  $this
    ->updateStatus(false);
  return $this->processInformation['stopsig'];
}