diff options
author | Fabricio Voznika <fvoznika@google.com> | 2018-06-28 13:22:12 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-06-28 13:23:04 -0700 |
commit | bb31a119035dd5266737b41456d967789693cf20 (patch) | |
tree | c7dd0c662562a0f4179836bc648ca24fd69204b9 /runsc/container | |
parent | 1ceed49ba94c139be274fe5eaf367201ab0042a6 (diff) |
Wait for sandbox process when waiting for root container
Closes #71
PiperOrigin-RevId: 202532762
Change-Id: I80a446ff638672ff08e6fd853cd77e28dd05d540
Diffstat (limited to 'runsc/container')
-rw-r--r-- | runsc/container/container.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/container/container.go b/runsc/container/container.go index c7dc6ec10..b2ea78084 100644 --- a/runsc/container/container.go +++ b/runsc/container/container.go @@ -449,7 +449,7 @@ func (c *Container) Destroy() error { // If we are the first container in the sandbox, take the sandbox down // as well. - if c.Sandbox != nil && c.Sandbox.ID == c.ID { + if c.Sandbox != nil && c.Sandbox.IsRootContainer(c.ID) { if err := c.Sandbox.Destroy(); err != nil { log.Warningf("Failed to destroy sandbox %q: %v", c.Sandbox.ID, err) } |