diff options
author | Miles Bader <miles@gnu.org> | 1997-08-09 23:47:17 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-08-09 23:47:17 +0000 |
commit | c03641b72ea8dbdf4ed51bbdeb9ee5fc2b966754 (patch) | |
tree | 7d4ffecd7c306128e4fc0912cfa0afe5376c550c /ftpfs/ccache.c | |
parent | 784ac5d3dd717c5ce317b1856a1f2ae98fdef902 (diff) |
(ccache_read):
Check for thread cancelation.
Diffstat (limited to 'ftpfs/ccache.c')
-rw-r--r-- | ftpfs/ccache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ftpfs/ccache.c b/ftpfs/ccache.c index c18f7577..88299027 100644 --- a/ftpfs/ccache.c +++ b/ftpfs/ccache.c @@ -168,6 +168,9 @@ ccache_read (struct ccache *cc, off_t offs, size_t len, void *data) cc->data_conn_pos += rd; } } + + if (!err && hurd_check_cancel ()) + err = EINTR; } mutex_lock (&cc->lock); |