mirror of
https://github.com/docker/cli.git
synced 2026-01-16 20:22:36 +03:00
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) Upstream-commit: 07c03944ffc5010ae0300bfd794c79f44e1637d4 Component: engine
This commit is contained in:
@@ -55,7 +55,7 @@ func Receive(conn *net.UnixConn) (rdata []byte, rf *os.File, rerr error) {
|
||||
}
|
||||
var f *os.File
|
||||
if len(fds) > 1 {
|
||||
for _, fd := range fds {
|
||||
for _, fd := range fds[1:] {
|
||||
syscall.Close(fd)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user