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\ProcessCode
public function signal(int $signal) : static {
$this->doSignal($signal, true);
return $this;
}