Browse code

Merge pull request #26796 from Microsoft/jjh/race-lcd-si

Windows: Data race in libcontainerd (si)

Sebastiaan van Stijn authored on 2016/09/23 02:44:17
Showing 1 changed files
... ...
@@ -264,6 +264,9 @@ func (ctr *container) waitExit(process *process, isFirstProcessToStart bool) err
264 264
 	if err := ctr.client.backend.StateChanged(ctr.containerID, si); err != nil {
265 265
 		logrus.Error(err)
266 266
 	}
267
+
268
+	logrus.Debugf("libcontainerd: waitExit() completed OK, %+v", si)
269
+
267 270
 	if si.State == StateRestart {
268 271
 		go func() {
269 272
 			err := <-waitRestart
... ...
@@ -282,7 +285,6 @@ func (ctr *container) waitExit(process *process, isFirstProcessToStart bool) err
282 282
 		}()
283 283
 	}
284 284
 
285
-	logrus.Debugf("libcontainerd: waitExit() completed OK, %+v", si)
286 285
 	return nil
287 286
 }
288 287