mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
- MFH: Errr, rule nº 1: be portable :)
This commit is contained in:
parent
9c2043d41a
commit
5b2bb471f7
@ -1147,7 +1147,9 @@ 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;
|
||||
}
|
||||
#ifndef PHP_WIN32
|
||||
errno = 0;
|
||||
#endif
|
||||
n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);
|
||||
|
||||
if (n >= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user