mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
* poll.cc (poll): Zero out `open_fds' as well.
This commit is contained in:
parent
914e40dfe6
commit
0106a9b755
@ -1,3 +1,7 @@
|
||||
Mon Jul 4 19:29:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* poll.cc (poll): Zero out `open_fds' as well.
|
||||
|
||||
Mon Jul 4 19:22:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* include/cygwin/version.h: Bump API minor version to 24.
|
||||
|
@ -19,6 +19,7 @@ poll (struct pollfd *fds, unsigned int nfds, int timeout)
|
||||
fd_set open_fds, read_fds, write_fds, except_fds;
|
||||
struct timeval tv = { timeout / 1000, (timeout % 1000) * 1000 };
|
||||
|
||||
FD_ZERO (&open_fds);
|
||||
FD_ZERO (&read_fds);
|
||||
FD_ZERO (&write_fds);
|
||||
FD_ZERO (&except_fds);
|
||||
|
Loading…
x
Reference in New Issue
Block a user