Skip to content

Commit 34ce81b

Browse files
authored
Merge pull request #1065 from mkroening/poll-deadlock
fix(eventfd): add explicit guard drop to avoid deadlock
2 parents 3d3299f + d067df5 commit 34ce81b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fd/eventfd.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ impl ObjectInterface for EventFd {
169169
}
170170
}
171171

172+
drop(guard);
173+
172174
future::poll_fn(|cx| {
173175
if result.is_empty() {
174176
let mut pinned = core::pin::pin!(self.state.lock());

0 commit comments

Comments
 (0)