From: Sven M. Hallberg Date: Thu, 4 Sep 2014 18:39:52 +0000 (+0200) Subject: check for both EAGAIN and EWOULDBLOCK from sendmsg X-Git-Url: http://git.meshlink.io/?p=catta;a=commitdiff_plain;h=1cd9b20f9661b8ca042dadbe512d145f138680c8 check for both EAGAIN and EWOULDBLOCK from sendmsg --- 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;