From: Alex Brainman Date: Fri, 21 Dec 2012 05:02:39 +0000 (+1100) Subject: os: remove dead code X-Git-Tag: go1.1rc2~1574 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9ad03484034fba96cc8979c3dc95f288ce9f3b2f;p=gostls13.git os: remove dead code R=golang-dev, dave, rsc CC=golang-dev https://golang.org/cl/6944066 --- diff --git a/src/pkg/os/file_windows.go b/src/pkg/os/file_windows.go index a86b8d61cd..9dff57000c 100644 --- a/src/pkg/os/file_windows.go +++ b/src/pkg/os/file_windows.go @@ -75,13 +75,6 @@ func openFile(name string, flag int, perm FileMode) (file *File, err error) { if e != nil { return nil, &PathError{"open", name, e} } - - // There's a race here with fork/exec, which we are - // content to live with. See ../syscall/exec.go - if syscall.O_CLOEXEC == 0 { // O_CLOEXEC not supported - syscall.CloseOnExec(r) - } - return NewFile(uintptr(r), name), nil }