mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
Kernel: Turn Process::FileDescriptionAndFlags into a proper class
This commit is contained in:
parent
f2a152e930
commit
2e2de125e5
8 changed files with 34 additions and 24 deletions
|
@ -221,13 +221,13 @@ bool Thread::SelectBlocker::should_unblock(Thread& thread, time_t now_sec, long
|
|||
for (int fd : m_select_read_fds) {
|
||||
if (!process.m_fds[fd])
|
||||
continue;
|
||||
if (process.m_fds[fd].description->can_read())
|
||||
if (process.m_fds[fd].description()->can_read())
|
||||
return true;
|
||||
}
|
||||
for (int fd : m_select_write_fds) {
|
||||
if (!process.m_fds[fd])
|
||||
continue;
|
||||
if (process.m_fds[fd].description->can_write())
|
||||
if (process.m_fds[fd].description()->can_write())
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue