public function Process::getTermSignal in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/process/Process.php \Symfony\Component\Process\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.
Return value
int
Throws
RuntimeException In case --enable-sigchild is activated
LogicException In case the process is not terminated
File
- vendor/
symfony/ process/ Process.php, line 661
Class
- Process
- Process is a thin wrapper around proc_* functions to easily start independent PHP processes.
Namespace
Symfony\Component\ProcessCode
public function getTermSignal() {
$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['termsig'];
}