mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
Kernel: Track time-of-last-write in SlavePTY and report it as mtime
This commit is contained in:
parent
ae9c5bf216
commit
4527d9852a
Notes:
sideshowbarker
2024-07-19 02:52:57 +09:00
Author: https://github.com/awesomekling
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