• 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
..
Makefile Loading commit data...
exec.go Loading commit data...
exec_test.go Loading commit data...
lp_plan9.go Loading commit data...
lp_test.go Loading commit data...
lp_unix.go Loading commit data...
lp_windows.go Loading commit data...