]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(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 8c24677c83e8e060b24fff5209e6accf22468ac8..70ee0eae8821340f26d33b9ac3fecfa8e73f6c0f 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);