]> granicus.if.org Git - php/commitdiff
- Fixed pcntl test for platforms not accepting a very large timeout in sigtimedwait()
authorMatteo Beccati <mbeccati@php.net>
Sun, 29 Mar 2009 16:42:49 +0000 (16:42 +0000)
committerMatteo Beccati <mbeccati@php.net>
Sun, 29 Mar 2009 16:42:49 +0000 (16:42 +0000)
# It isn't really necessary for the child to wait for PHP_INT_MAX seconds

ext/pcntl/tests/002.phpt

index 2af6d04963ad3cad420f9f53a5036032b981535b..3cec8833f85e64480f6f583df47fcedfae90fba4 100644 (file)
@@ -68,7 +68,7 @@ if ($pid == -1) {
        var_dump(pcntl_sigtimedwait(array(SIGTERM), $signo, PHP_INT_MAX, PHP_INT_MAX));
 } else {
        $siginfo = NULL;
-       pcntl_sigtimedwait(array(SIGINT), $siginfo, PHP_INT_MAX, 999999999);
+       pcntl_sigtimedwait(array(SIGINT), $siginfo, 3600, 0);
        exit;
 }