aboutsummaryrefslogtreecommitdiffstats
path: root/sock.h
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-06-04 13:52:01 -0300
committerdequis <dx@dxzone.com.ar>2015-06-04 14:13:22 -0300
commit56c8a4f1967a6529f1575082ae744c1ed14be412 (patch)
tree70e59fed7c3f0fded564a339bfc119819fa330e9 /sock.h
parent3a27896e4c1106ed6f48bce3d41ac4c4aa330a46 (diff)
sock.h: Add EAGAIN check to sockerr_again()
Diffstat (limited to 'sock.h')
-rw-r--r--sock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sock.h b/sock.h
index e1fd13d4..484bc317 100644
--- a/sock.h
+++ b/sock.h
@@ -8,5 +8,5 @@
#include <netdb.h>
#define sock_make_nonblocking(fd) fcntl(fd, F_SETFL, O_NONBLOCK)
#define sock_make_blocking(fd) fcntl(fd, F_SETFL, 0)
-#define sockerr_again() (errno == EINPROGRESS || errno == EINTR)
+#define sockerr_again() (errno == EINPROGRESS || errno == EINTR || errno == EAGAIN)
void closesocket(int fd);