public function Process::hasBeenSignaled in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\ProcessCode
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'];
}