diff options
| author | tiif <pekyuan@gmail.com> | 2024-08-17 12:02:23 +0800 |
|---|---|---|
| committer | tiif <pekyuan@gmail.com> | 2024-08-17 12:02:23 +0800 |
| commit | f9a7d6ec6fefb417a59347aeb81e7b3eec09a3e7 (patch) | |
| tree | be84cd2b4979ba918f8ef1fe0f769875d2e208d5 | |
| parent | 09511078810a88116fad8fcc7a6e84ce182b825b (diff) | |
| download | rust-f9a7d6ec6fefb417a59347aeb81e7b3eec09a3e7.tar.gz rust-f9a7d6ec6fefb417a59347aeb81e7b3eec09a3e7.zip | |
Move epoll_ready_events.epollhup = true up
| -rw-r--r-- | src/tools/miri/src/shims/unix/socket.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/src/shims/unix/socket.rs b/src/tools/miri/src/shims/unix/socket.rs index cf3f65f69b2..f7c168c58b9 100644 --- a/src/tools/miri/src/shims/unix/socket.rs +++ b/src/tools/miri/src/shims/unix/socket.rs @@ -71,12 +71,12 @@ impl FileDescription for SocketPair { } else { // Peer FD has been closed. epoll_ready_events.epollrdhup = true; + epoll_ready_events.epollhup = true; // Since the peer is closed, even if no data is available reads will return EOF and // writes will return EPIPE. In other words, they won't block, so we mark this as ready // for read and write. epoll_ready_events.epollin = true; epoll_ready_events.epollout = true; - epoll_ready_events.epollhup = true; } Ok(epoll_ready_events) } |
