glib r5600 - in trunk: . glib
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r5600 - in trunk: . glib
- Date: Fri, 6 Jul 2007 02:22:53 +0100 (BST)
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 <tml novell com>
* 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]