From 9bf18ab0f4414adb6b39db486dc123ec10f59bf5 Mon Sep 17 00:00:00 2001 From: corinna Date: Fri, 21 Apr 2006 11:35:43 +0000 Subject: [PATCH] * fhandler_socket.cc (fhandler_socket::wait): Reorder setting WSAError to avoid spurious errors with WSAError set to 0. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_socket.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index fe7d8bc910..56f45f419d 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2006-04-21 Corinna Vinschen + * fhandler_socket.cc (fhandler_socket::wait): Reorder setting + WSAError to avoid spurious errors with WSAError set to 0. + +2006-04-21 Corinna Vinschen + * include/asm/byteorder.h: Include stdint.h. Per standard, change datatypes in ntohX and htonX functions to uintXX_t types. diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc index 01e9870b6a..462b704465 100644 --- a/winsup/cygwin/fhandler_socket.cc +++ b/winsup/cygwin/fhandler_socket.cc @@ -1057,12 +1057,12 @@ sa_restart: } break; case WSA_WAIT_EVENT_0 + 1: - WSASetLastError (WSAEINTR); if (_my_tls.call_signal_handler ()) { sig_dispatch_pending (); goto sa_restart; } + WSASetLastError (WSAEINTR); break; default: WSASetLastError (WSAEFAULT); -- 2.11.0