mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #26796 from Microsoft/jjh/race-lcd-si
Windows: Data race in libcontainerd (si)
This commit is contained in:
commit
221d4fca0c
1 changed files with 3 additions and 1 deletions
|
@ -264,6 +264,9 @@ func (ctr *container) waitExit(process *process, isFirstProcessToStart bool) err
|
||||||
if err := ctr.client.backend.StateChanged(ctr.containerID, si); err != nil {
|
if err := ctr.client.backend.StateChanged(ctr.containerID, si); err != nil {
|
||||||
logrus.Error(err)
|
logrus.Error(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logrus.Debugf("libcontainerd: waitExit() completed OK, %+v", si)
|
||||||
|
|
||||||
if si.State == StateRestart {
|
if si.State == StateRestart {
|
||||||
go func() {
|
go func() {
|
||||||
err := <-waitRestart
|
err := <-waitRestart
|
||||||
|
@ -282,7 +285,6 @@ func (ctr *container) waitExit(process *process, isFirstProcessToStart bool) err
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
logrus.Debugf("libcontainerd: waitExit() completed OK, %+v", si)
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue