From 05ab8e37e34888f1b96934a75e7b2f8271ad4cac Mon Sep 17 00:00:00 2001 From: John Howard Date: Wed, 21 Sep 2016 13:42:26 -0700 Subject: [PATCH] Windows: Data race in libcontainerd (si) Signed-off-by: John Howard Upstream-commit: c2499dff6433105024c9434c652731087f32892c Component: engine --- components/engine/libcontainerd/container_windows.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/engine/libcontainerd/container_windows.go b/components/engine/libcontainerd/container_windows.go index 6e5f02565e..1e16aefb34 100644 --- a/components/engine/libcontainerd/container_windows.go +++ b/components/engine/libcontainerd/container_windows.go @@ -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 }