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

Breadcrumb

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

function Process::getTermSignal

Returns the number of the signal that caused the child process to terminate its execution.

It is only meaningful if hasBeenSignaled() returns true.

Throws

RuntimeException In case --enable-sigchild is activated

LogicException In case the process is not terminated

File

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

Class

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

Namespace

Symfony\Component\Process

Code

public function getTermSignal() : int {
    $this->requireProcessIsTerminated(__FUNCTION__);
    if ($this->isSigchildEnabled() && -1 === $this->processInformation['termsig']) {
        throw new RuntimeException('This PHP has been compiled with --enable-sigchild. Term signal cannot be retrieved.');
    }
    return $this->processInformation['termsig'];
}
RSS feed
Powered by Drupal