summaryrefslogtreecommitdiffhomepage
path: root/runsc/cmd/restore.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2019-06-18 15:34:58 -0700
committergVisor bot <gvisor-bot@google.com>2019-06-18 15:36:17 -0700
commit0e07c94d545aa971bb2a05b738f856181a3ff463 (patch)
treef3ab1fb4288184060373a41bb79a007293394a4b /runsc/cmd/restore.go
parentbdb19b82ef2aa1638d98da4b1c55ae7928437f55 (diff)
Kill sandbox process when 'runsc do' exits
PiperOrigin-RevId: 253882115
Diffstat (limited to 'runsc/cmd/restore.go')
-rw-r--r--runsc/cmd/restore.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/runsc/cmd/restore.go b/runsc/cmd/restore.go
index e18910325..7be60cd7d 100644
--- a/runsc/cmd/restore.go
+++ b/runsc/cmd/restore.go
@@ -107,8 +107,9 @@ func (r *Restore) Execute(_ context.Context, f *flag.FlagSet, args ...interface{
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)
}