public function stopProcess()
    {
        $this->isCurrentOsSupported('Only on *nix-based systems process cna be destroyed. You are running "%s".');
        try {
            $result = shell_exec(sprintf('kill %d 2>&1', $this->pid));
            if (!preg_match('/No such process/', $result)) {
                return true;
            }
        } catch (Exception $e) {

        }

        return false;
    }
public function stopProcess()
    {
        $this->isCurrentOsSupported('Only on *nix-based systems process cna be destroyed. You are running "%s".');
        try {
            $result = shell_exec(sprintf('kill %d 2>&1', $this->pid));
            if (!preg_match('/No such process/', $result)) {
                return true;
            }
        } catch (Exception $e) {

        }

        return false;
    }
public function stopProcess ( ) { $ this -> isCurrentOsSupported ( 'Only on *nix-based systems process cna be destroyed. You are running "%s".' ) ; try { $ result = shell_exec ( sprintf ( 'kill %d 2>&1' , $ this -> pid ) ) ; if ( ! preg_match ( '/No such process/' , $ result ) ) { return true ; } } catch ( Exception $ e ) { } return false ; }
Destroy the process.

@return bool
Destroy the process .