about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-10-18 22:23:57 +0000
committerUlrich Drepper <drepper@redhat.com>2007-10-18 22:23:57 +0000
commit7e9f348f41c70f05cef52d75be16735d0182d429 (patch)
treeabe6c1a6d36d57e54d430524badab50e7ac63a40
parent39cfc9fab591e46de171a81682cff384bf9761f3 (diff)
downloadglibc-7e9f348f41c70f05cef52d75be16735d0182d429.tar.gz
glibc-7e9f348f41c70f05cef52d75be16735d0182d429.tar.xz
glibc-7e9f348f41c70f05cef52d75be16735d0182d429.zip
(clntudp_call): Don't block in recvfrom call even if the poll result indicates there is data to read.
-rw-r--r--sunrpc/clnt_udp.c2
1 files changed, 1 insertions, 1 deletions
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);