summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2006-12-20 06:30:08 +0000
committerjsorg71 <jsorg71>2006-12-20 06:30:08 +0000
commitd6e5f1996eaae4e42d2d9924d04e109d85d36f91 (patch)
treefc4dfebef77fd90a1ad63bccb4ed5003cc2d288b
parentc480af5636c216bac1c92d5829aca915f8ca5e44 (diff)
downloadxrdp-proprietary-d6e5f1996eaae4e42d2d9924d04e109d85d36f91.tar.gz
xrdp-proprietary-d6e5f1996eaae4e42d2d9924d04e109d85d36f91.zip
added EINPROGRESS as a valid blocking errno
-rw-r--r--common/os_calls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index e551a6f7..2296180f 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -408,7 +408,7 @@ g_tcp_last_error_would_block(int sck)
#if defined(_WIN32)
return WSAGetLastError() == WSAEWOULDBLOCK;
#else
- return errno == EWOULDBLOCK;
+ return (errno == EWOULDBLOCK) || (errno == EINPROGRESS);
#endif
}