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:
Solomon Hykes
2014-04-22 15:50:16 -07:00
parent 8875cdf561
commit 07c03944ff
+1 -1
View File
@@ -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)
}
}