(clntudp_call): Don't block in recvfrom call even if the poll result
authordrepper <drepper>
Thu, 18 Oct 2007 22:23:57 +0000 (22:23 +0000)
committerdrepper <drepper>
Thu, 18 Oct 2007 22:23:57 +0000 (22:23 +0000)
indicates there is data to read.

sunrpc/clnt_udp.c

index 8c24677..70ee0ea 100644 (file)
@@ -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);