1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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 11f2531da6
commit f94a18677a

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 {