diff options
author | dequis <dx@dxzone.com.ar> | 2015-06-04 13:52:01 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-06-04 14:13:22 -0300 |
commit | 56c8a4f1967a6529f1575082ae744c1ed14be412 (patch) | |
tree | 70e59fed7c3f0fded564a339bfc119819fa330e9 | |
parent | 3a27896e4c1106ed6f48bce3d41ac4c4aa330a46 (diff) |
sock.h: Add EAGAIN check to sockerr_again()
-rw-r--r-- | sock.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |