Skip to content

Commit

Permalink
epoll: fix comment typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Nov 22, 2024
1 parent cc9872f commit 4f780f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shims/unix/linux/epoll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
)?;
if is_updated {
// Edge-triggered notification only notify one thread even if there are
// multiple threads block on the same epfd.
// multiple threads blocked on the same epfd.

// This unwrap can never fail because if the current epoll instance were
// closed, the upgrade of weak_epoll_interest
Expand Down
2 changes: 1 addition & 1 deletion tests/fail-dep/libc/eventfd_block_read_twice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use std::thread;
// 2. Thread 2 blocks.
// 3. Thread 3 unblocks both thread 1 and thread 2.
// 4. Thread 1 reads.
// 5. Thread 2's `read` can neber complete -> deadlocked.
// 5. Thread 2's `read` can never complete -> deadlocked.

fn main() {
// eventfd write will block when EFD_NONBLOCK flag is clear
Expand Down

0 comments on commit 4f780f1

Please sign in to comment.