mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05: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
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…
Add table
Reference in a new issue