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

Breadcrumb

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

function Process::signal

Sends a POSIX signal to the process.

Parameters

int $signal A valid POSIX signal (see https://php.net/pcntl.constants):

Return value

$this

Throws

LogicException In case the process is not running

RuntimeException In case --enable-sigchild is activated and the process can't be killed

RuntimeException In case of failure

File

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

Class

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

Namespace

Symfony\Component\Process

Code

public function signal(int $signal) : static {
    $this->doSignal($signal, true);
    return $this;
}
RSS feed
Powered by Drupal