]> git.meshlink.io Git - catta/blobdiff - src/socket.c
check for both EAGAIN and EWOULDBLOCK from sendmsg
[catta] / 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;