X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Fnet%2Funix%2Fsocket.cpp;fp=source%2Fnet%2Funix%2Fsocket.cpp;h=2c1e2ad8d355ac9e0fe9a31b5292f0709535c2f8;hp=d87cdd3a72907109133929d5b8a405e6237cc2cf;hb=63432878fc84bc666bb74efaeee588fa6d03d5b2;hpb=593c8202bf8c6ecc563aaacf0811aef953b45f09 diff --git a/source/net/unix/socket.cpp b/source/net/unix/socket.cpp index d87cdd3..2c1e2ad 100644 --- a/source/net/unix/socket.cpp +++ b/source/net/unix/socket.cpp @@ -64,7 +64,7 @@ size_t check_sys_error(make_signed::type ret, const char *func) { if(ret<0) { - if(errno==EAGAIN) + if(errno==EAGAIN || errno==EWOULDBLOCK) return 0; else throw system_error(func);