Skip to content

Commit

Permalink
rutabaga: cross_domain: Fix EPOLLRDHUP logic
Browse files Browse the repository at this point in the history
This was spuriously returning hung_up: true when no hangup occurred.

Signed-off-by: Asahi Lina <[email protected]>
  • Loading branch information
asahilina committed Oct 22, 2024
1 parent bae75d6 commit 41b3a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rutabaga_gfx/src/cross_domain/sys/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ impl WaitContext {
token: self.calculate_token(e.data()).unwrap(),
readable: e.events() & EpollFlags::EPOLLIN == EpollFlags::EPOLLIN,
hung_up: e.events() & EpollFlags::EPOLLHUP == EpollFlags::EPOLLHUP
|| e.events() & EpollFlags::EPOLLRDHUP != EpollFlags::EPOLLRDHUP,
|| e.events() & EpollFlags::EPOLLRDHUP == EpollFlags::EPOLLRDHUP,
})
.collect();

Expand Down

0 comments on commit 41b3a63

Please sign in to comment.