public function send($signal, $processId = null)
    {
        if (null === $processId) {
            $processId = posix_getpid();
        }

        return posix_kill($processId, $this->translateSignal($signal));
    }
public function send($signal, $processId = null)
    {
        if (null === $processId) {
            $processId = posix_getpid();
        }

        return posix_kill($processId, $this->translateSignal($signal));
    }
public function send ( $ signal , $ processId = null ) { if ( null === $ processId ) { $ processId = posix_getpid ( ) ; } return posix_kill ( $ processId , $ this -> translateSignal ( $ signal ) ) ; }
Send a signal to a process.

@param int|string $signal    Signal (code or name) to send.
@param int        $processId Process id to send signal, if not defined will use the current one.

@return bool
Send a signal to a process .