dotcloud/docker — pull request #5806 by icecrime (2014-05-14 20:24:50+00:00)
Title: Issue #5766 - Check channel closed state in /events loop

When listener channel is closed, it becomes always available for reading: select becomes an active loop which writes default-constructed events (i.e: empty strings).

Fixes #5766.

Docker-DCO-1.1-Signed-off-by: Arnaud Porterie (github: icecrime)