mirror of https://git.musl-libc.org/git/musl
Browse Source
the fcntl function is heavy, so make the syscall directly instead. also, avoid the code size and runtime overhead of querying the old flags, since it's reasonable to assume nothing will be set on a newly-created socket. this code is only used on old kernels which lack proper atomic close-on-exec support, so future changes that might invalidate such an assumption do not need to be considered.master
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue