Commit 9ad03484 authored by Alex Brainman's avatar Alex Brainman

os: remove dead code

R=golang-dev, dave, rsc
CC=golang-dev
https://golang.org/cl/6944066
parent c850d0f3
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment