diff options
author | Miles Bader <miles@gnu.org> | 1997-08-28 21:06:44 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-08-28 21:06:44 +0000 |
commit | 1d9949d72516653a85e7511654b037029be2fdf7 (patch) | |
tree | d074a239c8d0177bba62b0a47688aaff78661038 /ftpfs/ccache.c | |
parent | a5d3c143ecac80ee36bd5b04451558de9763d600 (diff) |
(ccache_read):
Always update CC->max to something reasonable after a transfer.
Use ports_self_interrupted to check for interrupts.
Diffstat (limited to 'ftpfs/ccache.c')
-rw-r--r-- | ftpfs/ccache.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ftpfs/ccache.c b/ftpfs/ccache.c index 88299027..c942378a 100644 --- a/ftpfs/ccache.c +++ b/ftpfs/ccache.c @@ -164,12 +164,13 @@ ccache_read (struct ccache *cc, off_t offs, size_t len, void *data) } else { - cc->max += rd; cc->data_conn_pos += rd; + if (cc->data_conn_pos > cc->max) + cc->max = cc->data_conn_pos; } } - if (!err && hurd_check_cancel ()) + if (!err && ports_self_interrupted ()) err = EINTR; } |