protected function kill($signal, $pid)
    {
        $output = array();
        $message = exec(sprintf(($this->runtime['Default']['user'] !== $this->getProcessOwner() ? ('sudo -u '. escapeshellarg($this->runtime['Default']['user'])) . ' ' : "") . '/bin/kill -%s %s 2>&1', $signal, $pid), $output, $code);
        return array('code' => $code, 'message' => $message);
    }
protected function kill($signal, $pid)
    {
        $output = array();
        $message = exec(sprintf(($this->runtime['Default']['user'] !== $this->getProcessOwner() ? ('sudo -u '. escapeshellarg($this->runtime['Default']['user'])) . ' ' : "") . '/bin/kill -%s %s 2>&1', $signal, $pid), $output, $code);
        return array('code' => $code, 'message' => $message);
    }
protected function kill ( $ signal , $ pid ) { $ output = array ( ) ; $ message = exec ( sprintf ( ( $ this -> runtime [ 'Default' ] [ 'user' ] !== $ this -> getProcessOwner ( ) ? ( 'sudo -u ' . escapeshellarg ( $ this -> runtime [ 'Default' ] [ 'user' ] ) ) . ' ' : "" ) . '/bin/kill -%s %s 2>&1' , $ signal , $ pid ) , $ output , $ code ) ; return array ( 'code' => $ code , 'message' => $ message ) ; }
Send a signal to a process

@param  String $signal Signal to send
@param  int    $pid    PID of the process

@codeCoverageIgnore
@since  1.2.0
@return array with the code and message returned by the command
Send a signal to a process