summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-11-25 11:01:22 -0800
committergVisor bot <gvisor-bot@google.com>2019-11-25 11:01:22 -0800
commit0416c247eca8dfe455b4972b11ef8aab0ea41d0f (patch)
tree7ee90568f10953976fab398362398b761a76dab1 /pkg/sentry/fs
parent1641338b14204ea941c547cf4c1a70665922ca05 (diff)
parent05871a1cdc73e98df58f56841be23a4eac27225c (diff)
Merge pull request #1176 from xiaobo55x:runsc_boot
PiperOrigin-RevId: 282382564
Diffstat (limited to 'pkg/sentry/fs')
-rw-r--r--pkg/sentry/fs/gofer/inode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/fs/gofer/inode.go b/pkg/sentry/fs/gofer/inode.go
index 4237bf353..91263ebdc 100644
--- a/pkg/sentry/fs/gofer/inode.go
+++ b/pkg/sentry/fs/gofer/inode.go
@@ -274,7 +274,7 @@ func (i *inodeFileState) recreateReadHandles(ctx context.Context, writer *handle
// operations on the old will see the new data. Then, make the new handle take
// ownereship of the old FD and mark the old readHandle to not close the FD
// when done.
- if err := syscall.Dup2(h.Host.FD(), i.readHandles.Host.FD()); err != nil {
+ if err := syscall.Dup3(h.Host.FD(), i.readHandles.Host.FD(), 0); err != nil {
return err
}