mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #2795 from pnasrat/docker-testmultipleattachrestart-race
Lock state before we modify.
This commit is contained in:
commit
eaeb969138
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue