summaryrefslogtreecommitdiff
path: root/ftpfs/ccache.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-08-09 23:47:17 +0000
committerMiles Bader <miles@gnu.org>1997-08-09 23:47:17 +0000
commitc03641b72ea8dbdf4ed51bbdeb9ee5fc2b966754 (patch)
tree7d4ffecd7c306128e4fc0912cfa0afe5376c550c /ftpfs/ccache.c
parent784ac5d3dd717c5ce317b1856a1f2ae98fdef902 (diff)
(ccache_read):
Check for thread cancelation.
Diffstat (limited to 'ftpfs/ccache.c')
-rw-r--r--ftpfs/ccache.c3
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);