commit | c8d49cf56f2633ba2859f9ad4567bf754128824c | [log] [tgz] |
---|---|---|
author | Brad Fitzpatrick <bradfitz@golang.org> | Wed Jul 31 23:38:53 2013 -0700 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Wed Jul 31 23:38:53 2013 -0700 |
tree | 97a6d8cd20f4b77c2a13db967a9638f42080369b | |
parent | 252c107f2fe3e1ba8a58e06ec0e63fa8c8f90bb5 [diff] |
syscall: add Dup3 on Linux 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