Browse Source

Windows: Data race in libcontainerd (si)

Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard 8 years ago
parent
commit
c2499dff64
1 changed files with 3 additions and 1 deletions
  1. 3 1
      libcontainerd/container_windows.go

+ 3 - 1
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 {
 	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
@@ -292,7 +295,6 @@ func (ctr *container) waitExit(process *process, isFirstProcessToStart bool) err
 		}()
 		}()
 	}
 	}
 
 
-	logrus.Debugf("libcontainerd: waitExit() completed OK, %+v", si)
 	return nil
 	return nil
 }
 }