Beam: Send: pass the underlying error unchanged to allow io.EOF detection

Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
This commit is contained in:
Solomon Hykes 2014-03-21 19:20:26 -07:00
parent f4c6f14d0a
commit bccd390ead

View file

@ -27,7 +27,7 @@ func Receive(conn *net.UnixConn) ([]byte, *os.File, error) {
for {
data, fds, err := receiveUnix(conn)
if err != nil {
return nil, nil, fmt.Errorf("receive: %v", err)
return nil, nil, err
}
var f *os.File
if len(fds) > 1 {