diff options
Diffstat (limited to 'main/network.c')
-rw-r--r-- | main/network.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/network.c b/main/network.c index 7d6bb61f68..613c070c28 100644 --- a/main/network.c +++ b/main/network.c @@ -1147,6 +1147,7 @@ PHPAPI int php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout) tv.tv_sec = timeout / 1000; tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000; } + errno = 0; n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL); if (n >= 0) { |