• Brad Fitzpatrick's avatar
    syscall: add Dup3 on Linux · c8d49cf5
    Brad Fitzpatrick authored
    With dup3, we can avoid an extra system call on some machines
    while holding syscall.ForkLock. Currently we have to
    syscall.Dup + syscall.CloseOnExec.
    
    On machines with Linux and a new enough kernel, this can just
    be dup3.
    
    R=golang-dev, r
    CC=golang-dev
    https://golang.org/cl/12170045
    c8d49cf5
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...