1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/logger
Stefan J. Wernli 54f11b84d2 Fixing file handle leak for "docker logs"
If "docker logs" was used on an offline container, the logger is leaked, leaving it up to the finalizer to close the file handle, which could block removal of the container.  Further, the json file logger could leak an open handle if the logs are read without follow due to an early return without a close.  This change addresses both cases.

Signed-off-by: Stefan J. Wernli <swernli@microsoft.com>
2016-06-21 18:40:30 -07:00
..
awslogs
etwlogs
fluentd
gcplogs
gelf
journald
jsonfilelog Fixing file handle leak for "docker logs" 2016-06-21 18:40:30 -07:00
loggerutils
splunk
syslog
context.go
copier.go
copier_test.go
factory.go
logger.go