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:
parent
ae9c5bf216
commit
4527d9852a
4 changed files with 17 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue