From 7e9f348f41c70f05cef52d75be16735d0182d429 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 18 Oct 2007 22:23:57 +0000 Subject: (clntudp_call): Don't block in recvfrom call even if the poll result indicates there is data to read. --- sunrpc/clnt_udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sunrpc/clnt_udp.c') diff --git a/sunrpc/clnt_udp.c b/sunrpc/clnt_udp.c index 8c24677c83..70ee0eae88 100644 --- a/sunrpc/clnt_udp.c +++ b/sunrpc/clnt_udp.c @@ -413,7 +413,7 @@ send_again: { fromlen = sizeof (struct sockaddr); inlen = __recvfrom (cu->cu_sock, cu->cu_inbuf, - (int) cu->cu_recvsz, 0, + (int) cu->cu_recvsz, MSG_DONTWAIT, (struct sockaddr *) &from, &fromlen); } while (inlen < 0 && errno == EINTR); -- cgit 1.4.1