Skip to content

Commit

Permalink
Merge pull request #1065 from mkroening/poll-deadlock
Browse files Browse the repository at this point in the history
fix(eventfd): add explicit guard drop to avoid deadlock
  • Loading branch information
stlankes authored Feb 15, 2024
2 parents 3d3299f + d067df5 commit 34ce81b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fd/eventfd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ impl ObjectInterface for EventFd {
}
}

drop(guard);

future::poll_fn(|cx| {
if result.is_empty() {
let mut pinned = core::pin::pin!(self.state.lock());
Expand Down

0 comments on commit 34ce81b

Please sign in to comment.