diff options
Diffstat (limited to 'runsc/cmd')
-rw-r--r-- | runsc/cmd/boot.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runsc/cmd/boot.go b/runsc/cmd/boot.go index 0dad6da79..3bdc2ced0 100644 --- a/runsc/cmd/boot.go +++ b/runsc/cmd/boot.go @@ -111,21 +111,21 @@ func (b *Boot) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) } // Create the loader. - s, err := boot.New(spec, conf, b.controllerFD, b.ioFDs.GetArray(), b.console) + l, err := boot.New(spec, conf, b.controllerFD, b.ioFDs.GetArray(), b.console) if err != nil { Fatalf("error creating loader: %v", err) } - defer s.Destroy() + defer l.Destroy() // Wait for the start signal from runsc. - s.WaitForStartSignal() + l.WaitForStartSignal() // Run the application and wait for it to finish. - if err := s.Run(); err != nil { + if err := l.Run(); err != nil { Fatalf("error running sandbox: %v", err) } - ws := s.WaitExit() + ws := l.WaitExit() log.Infof("application exiting with %+v", ws) *waitStatus = syscall.WaitStatus(ws.Status()) return subcommands.ExitSuccess |