shykes/docker — pull request #79 by alexlarsson (2014-03-31 08:12:32+00:00)
Title: beam: Fix double close of fds in SendUnix

Instead of calling syscall.Close() on the fds in sendUnix() we call
Close() on the *os.File in Send(). Otherwise the fd will be closed, but
the *os.File will continue to live, and when it is finalized the
fd will be closed (which by then may be reused and can be anything).

This also adds a note to Send() the the file is closed.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson (github: alexlarsson)