Merge pull request #2797 from crosbymichael/revert-exit-lock

Revert "Lock state before we modify."
Upstream-commit: c4ab4989204e41046f61f660946848d10a759a83
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-11-21 12:19:23 -08:00

View File

@ -1300,9 +1300,7 @@ func (container *Container) monitor() {
}
// Report status back
container.State.Lock()
container.State.setStopped(exitCode)
container.State.Unlock()
// Release the lock
close(container.waitLock)