Closed sunfishcode closed 3 years ago
read(2) returns 0 on EOF, rather than libc::EOF.
libc::EOF
This also matches the EOF check done in the userfaultfd example.
I haven't observed EOF on a userfaultfd occurring in an actual use; this is just something I noticed while reading the code.
read(2) returns 0 on EOF, rather than
libc::EOF
.This also matches the EOF check done in the userfaultfd example.
I haven't observed EOF on a userfaultfd occurring in an actual use; this is just something I noticed while reading the code.