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 authored and slp committed Oct 30, 2024
1 parent d571fe8 commit 1e012dd
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 1e012dd

Please sign in to comment.