From c03641b72ea8dbdf4ed51bbdeb9ee5fc2b966754 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 9 Aug 1997 23:47:17 +0000 Subject: (ccache_read): Check for thread cancelation. --- ftpfs/ccache.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ftpfs') 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); -- cgit v1.2.3