コード例 #1
0
ファイル: Exec.php プロジェクト: roothub/dslweb
 /**
  * Kill Application PID
  *
  * @param  unknown_type $PID
  * @return boolen
  */
 function kill($PID)
 {
     if (exec::is_running($PID)) {
         exec("kill -KILL {$PID}");
         return true;
     } else {
         return false;
     }
 }
コード例 #2
0
 /**
  * Kill Application PID
  *
  * @param  integer $pid process id from unix
  * @return boolean
  */
 public static function kill($pid)
 {
     if (exec::is_running($pid)) {
         exec('kill -9 ' . $pid);
         return TRUE;
         //killed
     } else {
         return FALSE;
         //not processing
     }
 }