mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Kernel: Set POLLHUP on WriteHangUp in sys$poll instead of POLLNVAL
POLLNVAL signifies an invalid fd, not a write hang up.
This commit is contained in:
parent
020c898290
commit
5ca46abb51
Notes:
sideshowbarker
2024-07-17 09:33:03 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/5ca46abb51 Pull-request: https://github.com/SerenityOS/serenity/pull/14533 Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ ErrorOr<FlatPtr> Process::sys$poll(Userspace<Syscall::SC_poll_params const*> use
|
|||
if (has_flag(fds_entry.unblocked_flags, BlockFlags::WriteError))
|
||||
pfd.revents |= POLLERR;
|
||||
if (has_flag(fds_entry.unblocked_flags, BlockFlags::WriteHangUp))
|
||||
pfd.revents |= POLLNVAL;
|
||||
pfd.revents |= POLLHUP;
|
||||
} else {
|
||||
if (has_flag(fds_entry.unblocked_flags, BlockFlags::Read)) {
|
||||
VERIFY(pfd.events & POLLIN);
|
||||
|
|
Loading…
Reference in a new issue