1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

Kernel: Track time-of-last-write in SlavePTY and report it as mtime

This commit is contained in:
Andreas Kling 2020-09-06 18:48:24 +02:00
parent ae9c5bf216
commit 4527d9852a
4 changed files with 17 additions and 5 deletions

View file

@ -74,6 +74,7 @@ void SlavePTY::on_master_write(const u8* buffer, ssize_t size)
ssize_t SlavePTY::on_tty_write(const u8* data, ssize_t size)
{
m_time_of_last_write = kgettimeofday().tv_sec;
return m_master->on_slave_write(data, size);
}