Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions runsc/container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,10 @@ func (c *Container) Wait() (unix.WaitStatus, error) {
log.Debugf("Wait on container, cid: %s", c.ID)
ws, err := c.Sandbox.Wait(c.ID)
if err == nil {
// Wait succeeded, container is not running anymore.
c.changeStatus(Stopped)
// Wait succeeded, container is not running anymore. Wait for the gofer.
if err = c.waitForStopped(); err == nil {
c.changeStatus(Stopped)
}
}
return ws, err
}
Expand Down