From 41b3a630124e6e7103eee5156964a17652b4f3eb Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Sun, 20 Oct 2024 01:32:43 +0900 Subject: [PATCH] rutabaga: cross_domain: Fix EPOLLRDHUP logic This was spuriously returning hung_up: true when no hangup occurred. Signed-off-by: Asahi Lina --- src/rutabaga_gfx/src/cross_domain/sys/unix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rutabaga_gfx/src/cross_domain/sys/unix.rs b/src/rutabaga_gfx/src/cross_domain/sys/unix.rs index 9ba9e8c7..99ceda3d 100644 --- a/src/rutabaga_gfx/src/cross_domain/sys/unix.rs +++ b/src/rutabaga_gfx/src/cross_domain/sys/unix.rs @@ -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();