Commit fc1f6aa
committed
example(uffd): dont panic if read(2) from uffd returns -EAGAIN
Started seeing the below failure in test_population_latency:
thread 'main' panicked at .../uffd/fault_all_handler.rs:41:18:
uffd_msg not ready
note: run with `RUST_BACKTRACE=1` environment variable to display a
backtrace
I am not entierly sure how this can happen, because the read from the
uffd is supposed to be blocking, but maybe it's a weird interaction
with the fault-all behavior (e.g. there was a uffd event queues, but
because we faulted everything it got cancelled again?), so let's just
try going back to read(2) if we dont read anything.
Signed-off-by: Patrick Roy <[email protected]>1 parent 464b001 commit fc1f6aa
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
0 commit comments