From 0e07c94d545aa971bb2a05b738f856181a3ff463 Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Tue, 18 Jun 2019 15:34:58 -0700 Subject: Kill sandbox process when 'runsc do' exits PiperOrigin-RevId: 253882115 --- runsc/cmd/run.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runsc/cmd/run.go') diff --git a/runsc/cmd/run.go b/runsc/cmd/run.go index ee14dc3d9..33f4bc12b 100644 --- a/runsc/cmd/run.go +++ b/runsc/cmd/run.go @@ -88,8 +88,9 @@ func (r *Run) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) s ConsoleSocket: r.consoleSocket, PIDFile: r.pidFile, UserLog: r.userLog, + Attached: !r.detach, } - ws, err := container.Run(conf, runArgs, r.detach) + ws, err := container.Run(conf, runArgs) if err != nil { return Errorf("running container: %v", err) } -- cgit v1.2.3