mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* fhandler_socket.cc (fhandler_socket::release): Call
WSASetLastError last.
This commit is contained in:
parent
eb6a452aae
commit
f0d14ca96d
@ -1,3 +1,8 @@
|
|||||||
|
2004-06-23 Pierre Humblet <pierre.humblet@ieee.org>
|
||||||
|
|
||||||
|
* fhandler_socket.cc (fhandler_socket::release): Call
|
||||||
|
WSASetLastError last.
|
||||||
|
|
||||||
2004-06-21 Christopher Faylor <cgf@alum.bu.edu>
|
2004-06-21 Christopher Faylor <cgf@alum.bu.edu>
|
||||||
|
|
||||||
* autoload.cc (wsock_init): Keep lock while modifying return address.
|
* autoload.cc (wsock_init): Keep lock while modifying return address.
|
||||||
|
@ -792,12 +792,12 @@ fhandler_socket::release (HANDLE event)
|
|||||||
int last_err = WSAGetLastError ();
|
int last_err = WSAGetLastError ();
|
||||||
/* KB 168349: NT4 fails if the event parameter is not NULL. */
|
/* KB 168349: NT4 fails if the event parameter is not NULL. */
|
||||||
WSAEventSelect (get_socket (), NULL, 0);
|
WSAEventSelect (get_socket (), NULL, 0);
|
||||||
|
WSACloseEvent (event);
|
||||||
unsigned long non_block = 0;
|
unsigned long non_block = 0;
|
||||||
if (ioctlsocket (get_socket (), FIONBIO, &non_block))
|
if (ioctlsocket (get_socket (), FIONBIO, &non_block))
|
||||||
debug_printf ("return to blocking failed: %d", WSAGetLastError ());
|
debug_printf ("return to blocking failed: %d", WSAGetLastError ());
|
||||||
else
|
else
|
||||||
WSASetLastError (last_err);
|
WSASetLastError (last_err);
|
||||||
WSACloseEvent (event);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user