We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents afcbd90 + 01c7317 commit 9f1631bCopy full SHA for 9f1631b
examples/manpage.rs
@@ -29,8 +29,9 @@ fn fault_handler_thread(uffd: Uffd) {
29
loop {
30
// See what poll() tells us about the userfaultfd
31
32
- let pollfd = PollFd::new(&uffd, PollFlags::POLLIN);
33
- let nready = poll(&mut [pollfd], -1).expect("poll");
+ let mut fds = [PollFd::new(&uffd, PollFlags::POLLIN)];
+ let nready = poll(&mut fds, -1).expect("poll");
34
+ let pollfd = fds[0];
35
36
println!("\nfault_handler_thread():");
37
let revents = pollfd.revents().unwrap();
0 commit comments