public function terminate($signal = null)
    {
        if ($this->process === null) {
            return false;
        }

        if ($signal !== null) {
            return \proc_terminate($this->process, $signal);
        }

        return \proc_terminate($this->process);
    }
public function terminate($signal = null)
    {
        if ($this->process === null) {
            return false;
        }

        if ($signal !== null) {
            return \proc_terminate($this->process, $signal);
        }

        return \proc_terminate($this->process);
    }
public function terminate ( $ signal = null ) { if ( $ this -> process === null ) { return false ; } if ( $ signal !== null ) { return \ proc_terminate ( $ this -> process , $ signal ) ; } return \ proc_terminate ( $ this -> process ) ; }
Terminate the process with an optional signal.

@param int $signal Optional signal (default: SIGTERM)
@return bool Whether the signal was sent successfully
Terminate the process with an optional signal .