Skip to content

Commit 89a63d1

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 bcb8b1d commit 89a63d1

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
@@ -687,6 +687,7 @@ impl Vmm {
687687
break;
688688
}
689689
}
690+
Err(e) if e.kind() == io::ErrorKind::Interrupted => continue,
690691
Err(e) => panic!("Read error: {}", e),
691692
}
692693
}

0 commit comments

Comments
 (0)