Skip to content

Commit

Permalink
fix: remove libc::EFD_NONBLOCK from eventfd flags (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
import-yuefeng authored Aug 22, 2022
1 parent deda5e6 commit 240dd80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monoio/src/driver/uring/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl IoUringDriver {

// Create eventfd and register it to the ring.
let waker = {
let fd = crate::syscall!(eventfd(0, libc::EFD_CLOEXEC | libc::EFD_NONBLOCK))?;
let fd = crate::syscall!(eventfd(0, libc::EFD_CLOEXEC))?;
unsafe {
use std::os::unix::io::FromRawFd;
std::fs::File::from_raw_fd(fd)
Expand Down

0 comments on commit 240dd80

Please sign in to comment.