summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
Diffstat (limited to 'term')
-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);