diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-07-17 01:28:52 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-07-17 01:28:52 +0000 |
commit | a4a7a26b9db2f22c646402a8c174d64fceee01ad (patch) | |
tree | e4d6420f3c05b458136130a04bd32acc7a774738 /term | |
parent | 8766dbc4f3a810197c7c4b36183b8c8e927cd0da (diff) |
(trivfs_S_io_read): Bother to set atime when appropriate.
Diffstat (limited to 'term')
-rw-r--r-- | term/users.c | 4 |
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); |