1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #24593 from mlaventure/fix-libcontainerd-data-race

Fix data race in libcontainerd
This commit is contained in:
Antonio Murdaca 2016-07-14 17:27:24 +02:00 committed by GitHub
commit 0a96ba8a0f

View file

@ -143,8 +143,8 @@ func (r *remote) handleConnectionChange() {
transientFailureCount = 0
if utils.IsProcessAlive(r.daemonPid) {
utils.KillProcess(r.daemonPid)
<-r.daemonWaitCh
}
<-r.daemonWaitCh
if err := r.runContainerdDaemon(); err != nil { //FIXME: Handle error
logrus.Errorf("error restarting containerd: %v", err)
}