diff --git a/src/dnsmasq.c b/src/dnsmasq.c index 6481de8..e0197af 100644 --- a/src/dnsmasq.c +++ b/src/dnsmasq.c @@ -1887,7 +1887,7 @@ static void check_dns_listeners(time_t now) single byte comes back up the pipe, which is sent by the child after it has closed the netlink socket. */ - retry_send(read(pipefd[0], &a, 1)); + while(retry_send(read(pipefd[0], &a, 1))); #endif break; } @@ -1928,7 +1928,7 @@ static void check_dns_listeners(time_t now) #ifdef HAVE_LINUX_NETWORK /* See comment above re netlink socket. */ close(daemon->netlinkfd); - retry_send(write(pipefd[1], &a, 1)); + while(retry_send(write(pipefd[1], &a, 1))); #endif }