From: Ulrich Drepper Date: Thu, 18 Oct 2007 22:23:57 +0000 (+0000) Subject: (clntudp_call): Don't block in recvfrom call even if the poll result indicates there... X-Git-Tag: cvs/fedora-glibc-20071212T1051~100 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e9f348f41c70f05cef52d75be16735d0182d429;p=thirdparty%2Fglibc.git (clntudp_call): Don't block in recvfrom call even if the poll result indicates there is data to read. --- diff --git a/sunrpc/clnt_udp.c b/sunrpc/clnt_udp.c index 8c24677c83e..70ee0eae882 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);