public function Process::getExitCode

Returns the exit code returned by the process.

@api

Return value

integer The exit status code

Throws

RuntimeException In case --enable-sigchild is activated and the sigchild compatibility mode is disabled

2 calls to Process::getExitCode()
Process::getExitCodeText in drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php
Returns a string representation for the exit code returned by the process.
Process::isSuccessful in drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php
Checks if the process ended successfully.

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php, line 577

Class

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

Namespace

Symfony\Component\Process

Code

public function getExitCode() {
  if ($this
    ->isSigchildEnabled() && !$this->enhanceSigchildCompatibility) {
    throw new RuntimeException('This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method');
  }
  $this
    ->updateStatus();
  return $this->exitcode;
}