pkg/beam
Alexander Larsson cd911b83ce 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 <alexl@redhat.com> (github: alexlarsson)
2014-04-22 15:50:22 -07:00
..
data beam/data: Message.Parse creates a message from shell-style 'key=value' arguments 2014-04-22 15:50:20 -07:00
examples/beamsh beam/examples/beamsh: add scripts to reproduce various bugs 2014-04-22 15:50:22 -07:00
beam.go beam: replace SendPair() with the simpler SendConn() 2014-04-22 15:50:21 -07:00
beam_test.go beam: more unit tests 2014-04-22 15:50:22 -07:00
MAINTAINERS Beam: a simple stream-oriented communication protocol for distributed systems. 2014-04-22 15:50:14 -07:00
service.go beam: replace SendPair() with the simpler SendConn() 2014-04-22 15:50:21 -07:00
unix.go beam: Fix double close of fds in SendUnix 2014-04-22 15:50:22 -07:00
unix_test.go beam: improve the API with Sender/Receiver interfaces and utilities: Copy/SendPipe/SendPair 2014-04-22 15:50:21 -07:00