* fhandler_socket.cc (fhandler_socket::wait): Reorder setting
WSAError to avoid spurious errors with WSAError set to 0.
This commit is contained in:
parent
387e6a35d8
commit
00c2208858
|
@ -1,3 +1,8 @@
|
|||
2006-04-21 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_socket.cc (fhandler_socket::wait): Reorder setting
|
||||
WSAError to avoid spurious errors with WSAError set to 0.
|
||||
|
||||
2006-04-21 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* include/asm/byteorder.h: Include stdint.h. Per standard, change
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue