Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* sunrpc/clnt_tcp.c (clnt_call): Don't use timeout in tests with zero,
	use ct->ct_wait.
	* sunrpc/clnt_unix.c (clnt_call): Likewise.
  • Loading branch information
Ulrich Drepper committed Nov 1, 2000
1 parent 25b3dd4 commit a69a8d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
clnt_control for any protocol. This would make it impossible for
the user to provide one in clnt_call().
Reported by Hitoshi Guutara Maruyama <maruyama@sh.rim.or.jp>.
* sunrpc/clnt_tcp.c (clnt_call): Don't use timeout in tests with zero,
use ct->ct_wait.
* sunrpc/clnt_unix.c (clnt_call): Likewise.

2000-10-31 Jes Sorensen <jes@linuxcare.com>

Expand Down
6 changes: 3 additions & 3 deletions sunrpc/clnt_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ clnttcp_call (h, proc, xdr_args, args_ptr, xdr_results, results_ptr, timeout)
}

shipnow =
(xdr_results == (xdrproc_t) 0 && timeout.tv_sec == 0
&& timeout.tv_usec == 0) ? FALSE : TRUE;
(xdr_results == (xdrproc_t) 0 && ct->ct_wait.tv_sec == 0
&& ct->ct_wait.tv_usec == 0) ? FALSE : TRUE;

call_again:
xdrs->x_op = XDR_ENCODE;
Expand All @@ -277,7 +277,7 @@ clnttcp_call (h, proc, xdr_args, args_ptr, xdr_results, results_ptr, timeout)
/*
* Hack to provide rpc-based message passing
*/
if (timeout.tv_sec == 0 && timeout.tv_usec == 0)
if (ct->ct_wait.tv_sec == 0 && ct->ct_wait.tv_usec == 0)
{
return ct->ct_error.re_status = RPC_TIMEDOUT;
}
Expand Down
6 changes: 3 additions & 3 deletions sunrpc/clnt_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ clntunix_call (h, proc, xdr_args, args_ptr, xdr_results, results_ptr, timeout)
}

shipnow =
(xdr_results == (xdrproc_t) 0 && timeout.tv_sec == 0
&& timeout.tv_usec == 0) ? FALSE : TRUE;
(xdr_results == (xdrproc_t) 0 && ct->ct_wait.tv_sec == 0
&& ct->ct_wait.tv_usec == 0) ? FALSE : TRUE;

call_again:
xdrs->x_op = XDR_ENCODE;
Expand All @@ -256,7 +256,7 @@ clntunix_call (h, proc, xdr_args, args_ptr, xdr_results, results_ptr, timeout)
/*
* Hack to provide rpc-based message passing
*/
if (timeout.tv_sec == 0 && timeout.tv_usec == 0)
if (ct->ct_wait.tv_sec == 0 && ct->ct_wait.tv_usec == 0)
return ct->ct_error.re_status = RPC_TIMEDOUT;


Expand Down

0 comments on commit a69a8d9

Please sign in to comment.