summaryrefslogtreecommitdiffhomepage
path: root/runsc/cmd
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2019-05-15 14:35:30 -0700
committerShentubot <shentubot@google.com>2019-05-15 14:36:28 -0700
commitecb0f00e10017e82698c326b4d83294c9e20dfbd (patch)
tree999d825e80a29625a9efb60fe45a0959cac0b4a9 /runsc/cmd
parent85380ff03d21da417ad74d28b293c768d7effb4f (diff)
Cleanup around urpc file payload handling
urpc always closes all files once the RPC function returns. PiperOrigin-RevId: 248406857 Change-Id: I400a8562452ec75c8e4bddc2154948567d572950
Diffstat (limited to 'runsc/cmd')
-rw-r--r--runsc/cmd/boot.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/cmd/boot.go b/runsc/cmd/boot.go
index ac937f7bc..3a547d4aa 100644
--- a/runsc/cmd/boot.go
+++ b/runsc/cmd/boot.go
@@ -213,7 +213,7 @@ func (b *Boot) Execute(_ context.Context, f *flag.FlagSet, args ...interface{})
Spec: spec,
Conf: conf,
ControllerFD: b.controllerFD,
- DeviceFD: b.deviceFD,
+ Device: os.NewFile(uintptr(b.deviceFD), "platform device"),
GoferFDs: b.ioFDs.GetArray(),
StdioFDs: b.stdioFDs.GetArray(),
Console: b.console,