]> 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 bc5f99bc0971e066df90df2e8dd208444c156dce..4bd154611866d3f60426d9c7478ec24fef8681e1 100755 (executable)
@@ -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);