Lines Matching refs:signal
448 * @param int $signal A valid POSIX signal (see https://php.net/pcntl.constants)
456 public function signal($signal) argument
458 $this->doSignal($signal, true);
865 …* @param int $signal A POSIX signal to send in case the process has not stop at timeout, de…
869 public function stop($timeout = 10, $signal = null) argument
882 $this->doSignal($signal ?: 9, false);
890 return $this->stop(0, $signal);
1575 * @param int $signal A valid POSIX signal (see https://php.net/pcntl.constants)
1584 private function doSignal($signal, $throwException) argument
1605 $ok = @proc_terminate($this->process, $signal);
1607 $ok = @posix_kill($pid, $signal);
1608 … } elseif ($ok = proc_open(sprintf('kill -%d %d', $signal, $pid), [2 => ['pipe', 'w']], $pipes)) {
1613 … throw new RuntimeException(sprintf('Error while sending signal `%s`.', $signal));
1620 $this->latestSignal = (int) $signal;