Skip to content

Commit f9a7d6e

Browse files
committed
Move epoll_ready_events.epollhup = true up
1 parent 0951107 commit f9a7d6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/src/shims/unix/socket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ impl FileDescription for SocketPair {
7171
} else {
7272
// Peer FD has been closed.
7373
epoll_ready_events.epollrdhup = true;
74+
epoll_ready_events.epollhup = true;
7475
// Since the peer is closed, even if no data is available reads will return EOF and
7576
// writes will return EPIPE. In other words, they won't block, so we mark this as ready
7677
// for read and write.
7778
epoll_ready_events.epollin = true;
7879
epoll_ready_events.epollout = true;
79-
epoll_ready_events.epollhup = true;
8080
}
8181
Ok(epoll_ready_events)
8282
}

0 commit comments

Comments
 (0)