summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1998-05-21 15:22:39 +0000
committerwpaul <wpaul@FreeBSD.org>1998-05-21 15:22:39 +0000
commitcae7803b332faeaa82605a30741e804ba30d9e4f (patch)
tree84f7356d7c0f73997113c8cc4cefba27344d3288 /lib/libc/rpc
parent96477d248e849bf95ea9f5ef368437b86b08c907 (diff)
downloadFreeBSD-src-cae7803b332faeaa82605a30741e804ba30d9e4f.zip
FreeBSD-src-cae7803b332faeaa82605a30741e804ba30d9e4f.tar.gz
The incorrect select() timeout calculation that I fixed in svc_tcp.c
also exists here (the timeout can expire much sooner than it's supposed to).
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r--lib/libc/rpc/clnt_tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/rpc/clnt_tcp.c b/lib/libc/rpc/clnt_tcp.c
index cfb3746..cb9b4dc 100644
--- a/lib/libc/rpc/clnt_tcp.c
+++ b/lib/libc/rpc/clnt_tcp.c
@@ -30,7 +30,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)clnt_tcp.c 1.37 87/10/05 Copyr 1984 Sun Micro";*/
/*static char *sccsid = "from: @(#)clnt_tcp.c 2.2 88/08/01 4.0 RPCSRC";*/
-static char *rcsid = "$Id: clnt_tcp.c,v 1.7 1996/12/30 14:36:17 peter Exp $";
+static char *rcsid = "$Id: clnt_tcp.c,v 1.10 1997/05/28 05:05:08 wpaul Exp $";
#endif
/*
@@ -521,7 +521,7 @@ readtcp(ct, buf, len)
gettimeofday(&after, NULL);
timersub(&start, &after, &duration);
- timersub(&delta, &duration, &tmp);
+ timersub(&ct->ct_wait, &duration, &tmp);
delta = tmp;
if (delta.tv_sec < 0 || !timerisset(&delta))
r = 0;
OpenPOWER on IntegriCloud