Descriptionsyscall: 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.
Patch Set 1 #Patch Set 2 : diff -r a5b5cbb9bd3d https://go.googlecode.com/hg/ #Patch Set 3 : diff -r a5b5cbb9bd3d https://go.googlecode.com/hg/ #Patch Set 4 : diff -r c8247d0380cd https://go.googlecode.com/hg/ #
MessagesTotal messages: 7
|