diff options
author | Lantao Liu <lantaol@google.com> | 2018-09-13 16:36:53 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-09-13 16:38:03 -0700 |
commit | bde2a91433cfbac426577a691bf13817115b53be (patch) | |
tree | 1403a6e5ffca3345da142bf68535763b6f34e5a9 /runsc/cmd/checkpoint.go | |
parent | adf8f339703922211886d3e5588160f65bc131b3 (diff) |
runsc: Support container signal/wait.
This CL:
1) Fix `runsc wait`, it now also works after the container exits;
2) Generate correct container state in Load;
2) Make sure `Destory` cleanup everything before successfully return.
PiperOrigin-RevId: 212900107
Change-Id: Ie129cbb9d74f8151a18364f1fc0b2603eac4109a
Diffstat (limited to 'runsc/cmd/checkpoint.go')
-rw-r--r-- | runsc/cmd/checkpoint.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/cmd/checkpoint.go b/runsc/cmd/checkpoint.go index 05014ba3d..7c2c3f59e 100644 --- a/runsc/cmd/checkpoint.go +++ b/runsc/cmd/checkpoint.go @@ -129,7 +129,7 @@ func (c *Checkpoint) Execute(_ context.Context, f *flag.FlagSet, args ...interfa log.Warningf("ignoring console socket since it cannot be restored") } - if err := cont.DestroyAndWait(); err != nil { + if err := cont.Destroy(); err != nil { Fatalf("error destroying container: %v", err) } |