Icicle\Concurrent\Process\Process::signal PHP Метод

signal() публичный Метод

Sends the given signal to the process.
public signal ( integer $signo )
$signo integer Signal number to send to process.
    public function signal(int $signo)
    {
        if (!$this->isRunning()) {
            throw new StatusError('The process is not running.');
        }
        proc_terminate($this->process, (int) $signo);
    }

Usage Example

Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function signal($signo)
 {
     $this->process->signal($signo);
 }