]> Cypherpunks repositories - gostls13.git/commit
net: fix {FileConn, FileListener, FilePacketConn} fd leak to child process.
authorSébastien Paolacci <sebastien.paolacci@gmail.com>
Tue, 4 Sep 2012 19:37:23 +0000 (12:37 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 4 Sep 2012 19:37:23 +0000 (12:37 -0700)
commit2836c63459ac9619cc3c2cf894ece83f85ce5190
treeacaee00ef1f000c332d51441ce7992007399444e
parent532dee3842298ad242355fd210efbd658cc93196
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