]> git.meshlink.io Git - catta/commitdiff
check for both EAGAIN and EWOULDBLOCK from sendmsg
authorSven M. Hallberg <pesco@khjk.org>
Thu, 4 Sep 2014 18:39:52 +0000 (20:39 +0200)
committerSven M. Hallberg <pesco@khjk.org>
Thu, 4 Sep 2014 18:39:52 +0000 (20:39 +0200)
src/socket.c

index 4145899da040887ae10cd5a84589ed0d874923bc..662224e5dc1ceed1d72fe1c3d73663d22bc15799 100644 (file)
@@ -462,7 +462,7 @@ static int sendmsg_loop(int fd, struct msghdr *msg, int flags) {
         if (errno == EINTR)
             continue;
 
-        if (errno != EAGAIN) {
+        if (errno != EAGAIN && errno != EWOULDBLOCK) {
             char where[64];
             struct sockaddr_in *sin = msg->msg_name;