public function signal(int $signo)
    {
        if (!$this->isRunning()) {
            throw new StatusError('The process is not running.');
        }

        proc_terminate($this->process, (int) $signo);
    }
public function signal(int $signo)
    {
        if (!$this->isRunning()) {
            throw new StatusError('The process is not running.');
        }

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

@param int $signo Signal number to send to process.

@throws \Icicle\Concurrent\Exception\StatusError If the process is not running.
Sends the given signal to the process .