Merge pull request #1078 from mrunalp/close_ch_1.0

server: correctly return and close ch from exits routine
This commit is contained in:
Mrunal Patel 2017-10-26 19:06:39 -07:00 committed by GitHub
commit ffe0d51a3c

View file

@ -418,6 +418,7 @@ func (s *Server) StartExitMonitor() {
}() }()
if err := watcher.Add(s.config.ContainerExitsDir); err != nil { if err := watcher.Add(s.config.ContainerExitsDir); err != nil {
logrus.Errorf("watcher.Add(%q) failed: %s", s.config.ContainerExitsDir, err) logrus.Errorf("watcher.Add(%q) failed: %s", s.config.ContainerExitsDir, err)
close(done)
} }
<-done <-done
} }