mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
terminate timeouting processes with SIGKILL (9)
This commit is contained in:
parent
e34dc6c6f7
commit
8f54a74d60
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user