Skip to content

Commit 10cf583

Browse files
kalyazinroypat
authored andcommitted
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 d091b0f commit 10cf583

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
@@ -762,6 +762,7 @@ impl Vmm {
762762
break;
763763
}
764764
}
765+
Err(e) if e.kind() == io::ErrorKind::Interrupted => continue,
765766
Err(e) => panic!("Read error: {}", e),
766767
}
767768
}

0 commit comments

Comments
 (0)