]> Cypherpunks repositories - gostls13.git/commitdiff
os: remove dead code
authorAlex Brainman <alex.brainman@gmail.com>
Fri, 21 Dec 2012 05:02:39 +0000 (16:02 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Fri, 21 Dec 2012 05:02:39 +0000 (16:02 +1100)
R=golang-dev, dave, rsc
CC=golang-dev
https://golang.org/cl/6944066

src/pkg/os/file_windows.go

index a86b8d61cd9adc0f7eb2dd44c37bb19446f57575..9dff57000ca2fbf190bbaa60d537e7bb256796fe 100644 (file)
@@ -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
 }