]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] net: fix {FileConn, FileListener, FilePacketConn} fd leak to...
authorSébastien Paolacci <sebastien.paolacci@gmail.com>
Fri, 21 Sep 2012 19:55:01 +0000 (05:55 +1000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 21 Sep 2012 19:55:01 +0000 (05:55 +1000)
commit0d1bbdf52ea7e957d2d22c5c22f2ab71bc598a17
treee2bca00d074ca5496fef390c819bfddff3f00a0a
parentc57119f04cf84e09e3038942dc40934a8f88a29d
[release-branch.go1] net: fix {FileConn, FileListener, FilePacketConn} fd leak to child process.

««« backport d694b1866058
net: fix {FileConn, FileListener, FilePacketConn} fd leak to child process.

All of them call `newFileFD' which must properly restore close-on-exec on
duplicated fds.

R=golang-dev, bradfitz, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/6445081

»»»
src/pkg/net/file.go
src/pkg/os/exec/exec_test.go