Author: tml Date: 2007-07-06 02:22:53 +0100 (Fri, 06 Jul 2007) New Revision: 5600 ViewCVS link: http://svn.gnome.org/viewcvs/glib?rev=5600&view=rev
Modified: trunk/ChangeLog trunk/glib/giowin32.c Log: 2007-07-06 Tor Lillqvist <[EMAIL PROTECTED]> * glib/giowin32.c (g_io_win32_check): When WSAEnumNetworkEvents() signals FD_CONNECT that means that the connection attempt finished, either successfully or failed. Test explicitly whether the connnection succeeded and set either G_IO_OUT if it did, G_IO_ERR|G_IO_HUP if it failed. Make sure we never set both G_IO_OUT and G_IO_HUP simultaneously because in Unix poll(2) POLLOUT and POLLHUP are mutually exclusive. Ignore whether the caller wants to watch G_IO_HUP or not. Always select for FD_CLOSE because Unix poll(2) also ignores whether POLLHUP in set the requested events bitmask or not. _______________________________________________ SVN-commits-list mailing list SVN-commits-list@gnome.org http://mail.gnome.org/mailman/listinfo/svn-commits-list