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:
parent
11f2531da6
commit
f94a18677a
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue