From 9ad03484034fba96cc8979c3dc95f288ce9f3b2f Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Fri, 21 Dec 2012 16:02:39 +1100 Subject: [PATCH] os: remove dead code R=golang-dev, dave, rsc CC=golang-dev https://golang.org/cl/6944066 --- src/pkg/os/file_windows.go | 7 ------- 1 file changed, 7 deletions(-) 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 } -- 2.48.1