From: Lennart Poettering Date: Fri, 25 Jun 2010 21:32:56 +0000 (+0200) Subject: socket: ignore EINTR on sendmsg() X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=2ff4904f525f4237011badeb3dbcf6aaf7f97db2;p=catta socket: ignore EINTR on sendmsg() --- 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;