Beam: don't close the attachment FD when closing superfluous FDs
Docker-DCO-1.1-Signed-off-by: Solomon Hykes <solomon@docker.com> (github: shykes)
This commit is contained in:
parent
24c09d0029
commit
43331921b0
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ func Receive(conn *net.UnixConn) (rdata []byte, rf *os.File, rerr error) {
|
||||||
}
|
}
|
||||||
var f *os.File
|
var f *os.File
|
||||||
if len(fds) > 1 {
|
if len(fds) > 1 {
|
||||||
for _, fd := range fds {
|
for _, fd := range fds[1:] {
|
||||||
syscall.Close(fd)
|
syscall.Close(fd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue