Windows: Data race in libcontainerd (si)

Signed-off-by: John Howard <jhoward@microsoft.com>
Upstream-commit: c2499dff6433105024c9434c652731087f32892c
Component: engine
This commit is contained in:
John Howard
2016-09-21 13:42:26 -07:00
parent 7db50d1196
commit 05ab8e37e3

View File

@ -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
}