Added output redirection to kill()

This commit is contained in:
Shoghi Cervantes Pueyo 2013-04-23 11:59:34 +02:00
parent 093bf3ddee
commit 3378c44542

View File

@ -40,14 +40,14 @@ function kill($pid){
switch(Utils::getOS()){ switch(Utils::getOS()){
case "win": case "win":
ob_start(); ob_start();
passthru("%WINDIR%\\System32\\taskkill.exe /F /PID ".((int) $pid)); passthru("%WINDIR%\\System32\\taskkill.exe /F /PID ".((int) $pid)." > NUL");
ob_end_clean(); ob_end_clean();
break; break;
case "mac": case "mac":
case "linux": case "linux":
default: default:
ob_start(); ob_start();
passthru("kill -9 ".((int) $pid)); passthru("kill -9 ".((int) $pid)." > /dev/null 2>&1");
ob_end_clean(); ob_end_clean();
} }
} }