Lines Matching refs:signal
507 * @param int $signal A valid POSIX signal (see https://php.net/pcntl.constants)
515 public function signal(int $signal) function in Symfony\\Component\\Process\\Process
517 $this->doSignal($signal, true);
914 …* @param int|null $signal A POSIX signal to send in case the process has not stop at timeout, de…
918 public function stop(float $timeout = 10, ?int $signal = null) argument
931 $this->doSignal($signal ?: 9, false);
939 return $this->stop(0, $signal);
1505 * @param int $signal A valid POSIX signal (see https://php.net/pcntl.constants)
1512 private function doSignal(int $signal, bool $throwException): bool argument
1533 $ok = @proc_terminate($this->process, $signal);
1535 $ok = @posix_kill($pid, $signal);
1536 … } elseif ($ok = proc_open(sprintf('kill -%d %d', $signal, $pid), [2 => ['pipe', 'w']], $pipes)) {
1541 … throw new RuntimeException(sprintf('Error while sending signal "%s".', $signal));
1548 $this->latestSignal = $signal;