Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Process.php

function Process::getExitCode

Returns the exit code returned by the process.

Return value

int|null The exit status code, null if the Process is not terminated

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

File

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

Class

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

Namespace

Symfony\Component\Process

Code

public function getExitCode() : ?int {
    $this->updateStatus(false);
    return $this->exitcode;
}
RSS feed
Powered by Drupal