epoll: fix comment typo

This commit is contained in:
Ralf Jung 2024-11-21 22:28:50 +01:00
parent 7d38c51555
commit 33f4d2ee61
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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