Skip to content

Commit 0b1085b

Browse files
committed
fix(vmm): handle EINTR in process_uffd_socket
Make sure we continue reading the FaultReply if the syscall was interrupted. Signed-off-by: Nikita Kalyazin <[email protected]>
1 parent ce8b2a6 commit 0b1085b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vmm/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,7 @@ impl Vmm {
852852
break;
853853
}
854854
}
855+
Err(e) if e.kind() == io::ErrorKind::Interrupted => continue,
855856
Err(e) => panic!("Read error: {}", e),
856857
}
857858
}

0 commit comments

Comments
 (0)