summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-07-17 01:28:52 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-07-17 01:28:52 +0000
commita4a7a26b9db2f22c646402a8c174d64fceee01ad (patch)
treee4d6420f3c05b458136130a04bd32acc7a774738
parent8766dbc4f3a810197c7c4b36183b8c8e927cd0da (diff)
(trivfs_S_io_read): Bother to set atime when appropriate.
-rw-r--r--term/users.c4
1 files changed, 4 insertions, 0 deletions
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);