]> granicus.if.org Git - php/commitdiff
terminate timeouting processes with SIGKILL (9)
authorNuno Lopes <nlopess@php.net>
Tue, 9 Aug 2011 21:53:44 +0000 (21:53 +0000)
committerNuno Lopes <nlopess@php.net>
Tue, 9 Aug 2011 21:53:44 +0000 (21:53 +0000)
run-tests.php

index a615efccdcff8d862533c5c0d37c242e2a7d20c5..ddd1f5f494a425f484fddcfe31e1f6a9ee3fa34b 100755 (executable)
@@ -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);