mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user