Don't return EINTR from process_vm_{write,read}v syscalls

Just repeat the Linux behavior here.

PiperOrigin-RevId: 607463895
This commit is contained in:
Andrei Vagin
2024-02-15 14:54:13 -08:00
committed by gVisor bot
parent 5388e58e1f
commit 28a8d3d3f3
@@ -194,12 +194,6 @@ func doProcessVMOpMaybeLocked(t *kernel.Task, args processVMOpArgs) (int, error)
start := 0
for bytes > start && 0 < len(writeIovecs) {
if t.Interrupted() {
if n == 0 {
return 0, linuxerr.EINTR
}
return n, nil
}
writeLength := int(writeIovecs[0].Length())
if writeLength > (bytes - start) {
writeLength = bytes - start