moby--moby/daemon/logger/jsonfilelog
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
..
jsonfilelog.go
jsonfilelog_test.go
read.go Fixing file handle leak for "docker logs" 2016-06-21 18:40:30 -07:00