Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions packages/orchestrator/internal/sandbox/uffd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ outerLoop:
buf := make([]byte, unsafe.Sizeof(userfaultfd.UffdMsg{}))

for {
n, err := syscall.Read(uffd, buf)
_, err := syscall.Read(uffd, buf)
if err == syscall.EINTR {
logger.Debug("uffd: interrupted read, reading again")

Expand All @@ -108,8 +108,6 @@ outerLoop:
}

if err == syscall.EAGAIN {
logger.Debug("uffd: eagain error, going back to polling", zap.Error(err), zap.Int("read_bytes", n))

// Continue polling the fd.
continue outerLoop
}
Expand Down
Loading