]> git.meshlink.io Git - catta/commitdiff
socket: ignore EINTR on sendmsg()
authorLennart Poettering <lennart@poettering.net>
Fri, 25 Jun 2010 21:32:56 +0000 (23:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 25 Jun 2010 21:32:56 +0000 (23:32 +0200)
avahi-core/socket.c

index 54e492c95a4284ebdf77f3a5d33dd2bef5a26af6..be62105dba8788975d83b9f2a196f3a761b83bdd 100644 (file)
@@ -448,6 +448,9 @@ static int sendmsg_loop(int fd, struct msghdr *msg, int flags) {
         if (sendmsg(fd, msg, flags) >= 0)
             break;
 
+        if (errno == EINTR)
+            continue;
+
         if (errno != EAGAIN) {
             char where[64];
             struct sockaddr_in *sin = msg->msg_name;