src/Services/Process.php
public function terminate($signal = 15)
    {
        if ($this->process === null) {
            return false;
        }

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

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

This optional parameter is only useful on POSIX operating systems; you may specify a signal to send to the
process using the kill(2) system call. The default is SIGTERM (15).

SIGTERM (15) is the termination signal. The default behavior is to terminate the process, but it also can be
caught or ignored. The intention is to kill the process, but to first allow it a chance to cleanup.

SIGKILL (9) is the kill signal. The only behavior is to kill the process, immediately. As the process cannot
catch the signal, it cannot cleanup, and thus this is a signal of last resort.

@param int $signal
@return bool The termination status of the process that was run.
Terminate the process .