mirror of https://git.musl-libc.org/git/musl
Browse Source
since there is no easy way to detect whether open honored or ignored the O_CLOEXEC flag, the optimal solution to providing a fallback is simply to make the fcntl syscall to set the close-on-exec flag immediately after open returns.master
3 changed files with 9 additions and 1 deletions
Loading…
Reference in new issue