From 584a256388a9a2a898fe520ae5d60a5341bb0aef Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Thu, 26 Oct 2017 16:54:19 +0200 Subject: [PATCH] server: correctly return and close ch from exits routine Signed-off-by: Antonio Murdaca --- server/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/server.go b/server/server.go index 637ab860..6aafd0c9 100644 --- a/server/server.go +++ b/server/server.go @@ -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 }