You are here

public function Process::isTerminated in Zircon Profile 8

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

Checks if the process is terminated.

Return value

bool true if process is terminated, false otherwise

1 call to Process::isTerminated()
Process::requireProcessIsTerminated in vendor/symfony/process/Process.php
Ensures the process is terminated, throws a LogicException if the process has a status different than `terminated`.

File

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

Class

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

Namespace

Symfony\Component\Process

Code

public function isTerminated() {
  $this
    ->updateStatus(false);
  return $this->status == self::STATUS_TERMINATED;
}