• Brad Fitzpatrick's avatar
    os: don't trust O_CLOEXEC on OS X · 1dfe3d1f
    Brad Fitzpatrick authored
    OS X 10.6 doesn't do O_CLOEXEC.
    OS X 10.7 does.
    
    For now, always fall back to using syscall.CloseOnExec on darwin.
    
    This can removed when 10.6 is old news, or if we find a
    way to cheaply & reliably detect 10.6 vs 10.7 at runtime.
    
    Fixes #2587
    
    R=golang-dev, rsc, iant
    CC=golang-dev
    https://golang.org/cl/5500053
    1dfe3d1f
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.ccmd Loading commit data...
Make.clib Loading commit data...
Make.cmd Loading commit data...
Make.common Loading commit data...
Make.inc Loading commit data...
Make.pkg Loading commit data...
all-qemu.bash Loading commit data...
all.bash Loading commit data...
buildinfo.sh Loading commit data...
buildscript.sh Loading commit data...
buildscript_darwin_386.sh Loading commit data...
buildscript_darwin_amd64.sh Loading commit data...
buildscript_freebsd_386.sh Loading commit data...
buildscript_freebsd_amd64.sh Loading commit data...
buildscript_linux_386.sh Loading commit data...
buildscript_linux_amd64.sh Loading commit data...
buildscript_linux_arm.sh Loading commit data...
buildscript_netbsd_386.sh Loading commit data...
buildscript_netbsd_amd64.sh Loading commit data...
buildscript_openbsd_386.sh Loading commit data...
buildscript_openbsd_amd64.sh Loading commit data...
buildscript_plan9_386.sh Loading commit data...
buildscript_windows_386.sh Loading commit data...
buildscript_windows_amd64.sh Loading commit data...
clean.bash Loading commit data...
env.bash Loading commit data...
make.bash Loading commit data...
quietgcc.bash Loading commit data...
run.bash Loading commit data...
sudo.bash Loading commit data...
version.bash Loading commit data...