From a4a7a26b9db2f22c646402a8c174d64fceee01ad Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 17 Jul 1996 01:28:52 +0000 Subject: (trivfs_S_io_read): Bother to set atime when appropriate. --- term/users.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'term/users.c') diff --git a/term/users.c b/term/users.c index 9c7fadbc..62314303 100644 --- a/term/users.c +++ b/term/users.c @@ -711,6 +711,10 @@ trivfs_S_io_read (struct trivfs_protid *cred, *datalen = cp - *data; + /* If we really read something, set atime */ + if (*datalen || !cancel) + trivfs_set_atime (termctl); + call_asyncs (O_READ); mutex_unlock (&global_lock); -- cgit v1.2.3