function Process::requireProcessIsTerminated
Ensures the process is terminated, throws a LogicException if the process has a status different than "terminated".
Throws
LogicException if the process is not yet terminated
4 calls to Process::requireProcessIsTerminated()
- Process::getStopSignal in vendor/
symfony/ process/ Process.php - Returns the number of the signal that caused the child process to stop its execution.
- Process::getTermSignal in vendor/
symfony/ process/ Process.php - Returns the number of the signal that caused the child process to terminate its execution.
- Process::hasBeenSignaled in vendor/
symfony/ process/ Process.php - Returns true if the child process has been terminated by an uncaught signal.
- Process::hasBeenStopped in vendor/
symfony/ process/ Process.php - Returns true if the child process has been stopped by a signal.
File
-
vendor/
symfony/ process/ Process.php, line 1627
Class
- Process
- Process is a thin wrapper around proc_* functions to easily start independent PHP processes.
Namespace
Symfony\Component\ProcessCode
private function requireProcessIsTerminated(string $functionName) : void {
if (!$this->isTerminated()) {
throw new LogicException(\sprintf('Process must be terminated before calling "%s()".', $functionName));
}
}