mirror of
https://github.com/php/php-src.git
synced 2024-11-23 09:54:15 +08:00
Fixed unnecessary invokation of setitimer when timeouts have been disabled (Arvind Srinivasan)
This commit is contained in:
parent
fa67c860e0
commit
10b30b51bc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user