mirror of
https://github.com/php/php-src.git
synced 2026-04-27 10:16:41 +02:00
terminate timeouting processes with SIGKILL (9)
This commit is contained in:
+1
-1
@@ -1082,7 +1082,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);
|
||||
|
||||
Reference in New Issue
Block a user