Fixed unnecessary invokation of setitimer when timeouts have been disabled (Arvind Srinivasan)

This commit is contained in:
Dmitry Stogov 2009-11-05 09:33:19 +00:00
parent fa67c860e0
commit 10b30b51bc

View File

@ -1481,7 +1481,7 @@ void zend_unset_timeout(TSRMLS_D) /* {{{ */
}
#else
# ifdef HAVE_SETITIMER
{
if (EG(timeout_seconds)) {
struct itimerval no_timeout;
no_timeout.it_value.tv_sec = no_timeout.it_value.tv_usec = no_timeout.it_interval.tv_sec = no_timeout.it_interval.tv_usec = 0;