Kaynağa Gözat

Fix data race in libcontainerd

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Kenfe-Mickael Laventure 9 yıl önce
ebeveyn
işleme
8e9fbc8f5f
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      libcontainerd/remote_linux.go

+ 1 - 1
libcontainerd/remote_linux.go

@@ -142,8 +142,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)
 					}