Skip to content

Commit

Permalink
Fix data race in libcontainerd
Browse files Browse the repository at this point in the history
Signed-off-by: Kenfe-Mickael Laventure <[email protected]>
  • Loading branch information
mlaventure committed Jul 13, 2016
1 parent 8a40546 commit 8e9fbc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcontainerd/remote_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 8e9fbc8

Please sign in to comment.