* fhandler_socket.cc (fhandler_socket::wait): Reorder setting

WSAError to avoid spurious errors with WSAError set to 0.
This commit is contained in:
Corinna Vinschen
2006-04-21 11:35:44 +00:00
parent 387e6a35d8
commit 00c2208858
2 changed files with 6 additions and 1 deletions

View File

@@ -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);