From 2ff4904f525f4237011badeb3dbcf6aaf7f97db2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 25 Jun 2010 23:32:56 +0200 Subject: [PATCH] socket: ignore EINTR on sendmsg() --- avahi-core/socket.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/avahi-core/socket.c b/avahi-core/socket.c index 54e492c..be62105 100644 --- a/avahi-core/socket.c +++ b/avahi-core/socket.c @@ -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; -- 2.39.5