]> git.saurik.com Git - wxWidgets.git/commitdiff
map EAGAIN to wxSOCKET_WOULDBLOCK too as tit has this meaning for read() (even though...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Dec 2008 18:01:59 +0000 (18:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Dec 2008 18:01:59 +0000 (18:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/sockunix.cpp

index 60143e73a1aa24fdf423d1216ca9d8cb943e521f..d0cd4e198fe51c6c51bcb2f8978bb513fb468b8a 100644 (file)
@@ -453,6 +453,10 @@ wxSocketError wxSocketImplUnix::GetLastError() const
         case ENOTSOCK:
             return wxSOCKET_INVSOCK;
 
+        // unfortunately EAGAIN only has the "would block" meaning for read(),
+        // not for connect() for which it means something rather different but
+        // we can't distinguish between these two situations currently...
+        case EAGAIN:
         case EINPROGRESS:
             return wxSOCKET_WOULDBLOCK;