Re: zend_timeout and the SIGPROF signal
| From: | Zeev Suraski | Date: | Thu, 20 Feb 2003 15:30:04 +0000 |
| Subject: | Re: zend_timeout and the SIGPROF signal | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-94399@lists.php.net to get a copy of this message | ||
At 16:58 20/02/2003, wmeler@wp-sa.pl wrote:
I have a question in regards to page timeouts and how the initial I've noticed if a query takes longer than the default 30 seconds to execute, php returns a timeout message to the user. From what I can tell, php uses the SIGPROF signal to stop execution when the 30 seconds has expired. Also, I've found that it doesn't seem to "unwind" the stack I've reported it as bug #16820 and submited a patch, but no one answered ... I think it is better to use the same method as in Windows environment - set a EG(timeout) flag.I looked into the bug report, and it is true that BLOCK_INTERRUPTIONS should indeed block SIGPROF. I'll fix this in the weekend. Zeev