mirror of
https://github.com/docker/cli.git
synced 2026-01-18 08:21:31 +03:00
Merge pull request #2795 from pnasrat/docker-testmultipleattachrestart-race
Lock state before we modify. Upstream-commit: eaeb969138205349c08e485c0bc4d29dbe2567d7 Component: engine
This commit is contained in:
@@ -1300,7 +1300,9 @@ func (container *Container) monitor() {
|
||||
}
|
||||
|
||||
// Report status back
|
||||
container.State.Lock()
|
||||
container.State.setStopped(exitCode)
|
||||
container.State.Unlock()
|
||||
|
||||
// Release the lock
|
||||
close(container.waitLock)
|
||||
|
||||
Reference in New Issue
Block a user