From 1cd9b20f9661b8ca042dadbe512d145f138680c8 Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" Date: Thu, 4 Sep 2014 20:39:52 +0200 Subject: [PATCH] check for both EAGAIN and EWOULDBLOCK from sendmsg --- src/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.c b/src/socket.c index 4145899..662224e 100644 --- a/src/socket.c +++ b/src/socket.c @@ -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; -- 2.39.2