Il 04/02/2013 16:07, Stefan Hajnoczi ha scritto: >> > No idea why the windows version has been mixing g_poll() and select(). >> > I'd hope that this series kills select() for uniformity's sake, but the >> > 00/10 subject and the commit msg for this patch indicate otherwise. > This is why I CCed Fabien. I left the g_poll-followed-by-select > behavior. It may be to do with Windows treating sockets different from > other objects. Paolo may know the answer, too. >
Yes, indeed. Windows uses g_poll for HANDLEs and select for sockets. All sockets are configured to trigger an event handle when there is a change in the socket availability, so g_poll exits and select is reexecuted. Paolo