Skip to content

Commit

Permalink
poll: Fix old comment not relevant after a refactor in the original PR.
Browse files Browse the repository at this point in the history
Closes #1728
  • Loading branch information
jasta authored and Thomasdezeeuw committed Dec 6, 2023
1 parent f6a20da commit bfc9d3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sys/unix/selector/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ impl SelectorState {
closed_raw_fds.push(poll_fd.fd);
}

// Remove the interest which just got triggered
// the IoSourceState/WakerRegistrar used with this selector will add back
// the interest using reregister.
// Remove the interest which just got triggered the IoSourceState's do_io
// wrapper used with this selector will add back the interest using
// reregister.
poll_fd.events &= !poll_fd.revents;

// Minor optimization to potentially avoid looping n times where n is the
Expand Down

0 comments on commit bfc9d3d

Please sign in to comment.