mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Windows: Data race in libcontainerd (si)
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
7e6db44e2b
commit
c2499dff64
1 changed files with 3 additions and 1 deletions
|
@ -274,6 +274,9 @@ func (ctr *container) waitExit(process *process, isFirstProcessToStart bool) err
|
|||
if err := ctr.client.backend.StateChanged(ctr.containerID, si); err != nil {
|
||||
logrus.Error(err)
|
||||
}
|
||||
|
||||
logrus.Debugf("libcontainerd: waitExit() completed OK, %+v", si)
|
||||
|
||||
if si.State == StateRestart {
|
||||
go func() {
|
||||
err := <-waitRestart
|
||||
|
@ -292,7 +295,6 @@ func (ctr *container) waitExit(process *process, isFirstProcessToStart bool) err
|
|||
}()
|
||||
}
|
||||
|
||||
logrus.Debugf("libcontainerd: waitExit() completed OK, %+v", si)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue