You are here

public function Process::signal in Zircon Profile 8

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

Sends a POSIX signal to the process.

Parameters

int $signal A valid POSIX signal (see http://www.php.net/manual/en/pcntl.constants.php):

Return value

Process

Throws

LogicException In case the process is not running

RuntimeException In case --enable-sigchild is activated

RuntimeException In case of failure

File

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

Class

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

Namespace

Symfony\Component\Process

Code

public function signal($signal) {
  $this
    ->doSignal($signal, true);
  return $this;
}