(clntudp_call): Don't block in recvfrom call even if the poll result indicates there...
authorUlrich Drepper <drepper@redhat.com>
Thu, 18 Oct 2007 22:23:57 +0000 (22:23 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 18 Oct 2007 22:23:57 +0000 (22:23 +0000)
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);