summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-08-13 19:05:09 +0000
committergVisor bot <gvisor-bot@google.com>2019-08-13 19:05:09 +0000
commit92d492e8e71f1348108bd91598ae6b4de73e3832 (patch)
tree097940d9ef3c3bfc76099505a25a5340219b6afc /pkg/sentry/syscalls
parent3b7346145bcb48b8fb648e9b598ab3350002a754 (diff)
parent8d97b22aa8e565ff05c5e9209f13d2394e9706c8 (diff)
Merge 8d97b22a (automated)
Diffstat (limited to 'pkg/sentry/syscalls')
-rw-r--r--pkg/sentry/syscalls/linux/error.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/sentry/syscalls/linux/error.go b/pkg/sentry/syscalls/linux/error.go
index 264301bfa..1d9018c96 100644
--- a/pkg/sentry/syscalls/linux/error.go
+++ b/pkg/sentry/syscalls/linux/error.go
@@ -91,6 +91,10 @@ func handleIOError(t *kernel.Task, partialResult bool, err, intr error, op strin
// TODO(gvisor.dev/issue/161): In some cases SIGPIPE should
// also be sent to the application.
return nil
+ case syserror.ENOSPC:
+ // Similar to EPIPE. Return what we wrote this time, and let
+ // ENOSPC be returned on the next call.
+ return nil
case syserror.ECONNRESET:
// For TCP sendfile connections, we may have a reset. But we
// should just return n as the result.