Skip to content

Commit

Permalink
(clntudp_call): Don't block in recvfrom call even if the poll result …
Browse files Browse the repository at this point in the history
…indicates there is data to read.
  • Loading branch information
Ulrich Drepper committed Oct 18, 2007
1 parent 39cfc9f commit 7e9f348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sunrpc/clnt_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ clntudp_call (cl, proc, xargs, argsp, xresults, resultsp, utimeout)
{
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);
Expand Down

0 comments on commit 7e9f348

Please sign in to comment.