1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #21313 from Microsoft/sjw/logs_fix

Fixing logs file handle leak.
This commit is contained in:
David Calavera 2016-03-21 08:41:31 -07:00
commit be8459c248

View file

@ -84,6 +84,7 @@ func (daemon *Daemon) ContainerLogs(containerName string, config *backend.Contai
case msg, ok := <-logs.Msg:
if !ok {
logrus.Debugf("logs: end stream")
logs.Close()
return nil
}
logLine := msg.Line