terminate timeouting processes with SIGKILL (9)

This commit is contained in:
Nuno Lopes 2011-08-09 21:53:44 +00:00
parent e34dc6c6f7
commit 8f54a74d60

View File

@ -1080,7 +1080,7 @@ function system_with_timeout($commandline, $env = null, $stdin = null)
} else if ($n === 0) {
/* timed out */
$data .= b"\n ** ERROR: process timed out **\n";
proc_terminate($proc);
proc_terminate($proc, 9);
return $data;
} else if ($n > 0) {
$line = (binary) fread($pipes[1], 8192);