Merge pull request #1076 from runcom/close-ch

server: correctly return and close ch from exits routine
This commit is contained in:
Mrunal Patel 2017-10-26 11:00:42 -07:00 committed by GitHub
commit 1442bb7ed7

View file

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