O_CLOEXEC avoids a race condition and is less code. It was supported in Linux starting 2.6.23. https://bugs.python.org/issue26343#msg260151 says it's been available since macOS 10.7. Let's try using it instead of fcntl and see if anything breaks. It's even part of POSIX these days. Update-Note: BoringSSL's /dev/urandom code now assumes the platform supports O_CLOEXEC. Change-Id: I95313892b36539591685d4c83a387f77129ad3d1 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/54125 Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: David Benjamin <davidben@google.com>chromium-5359
parent
779f7d0840
commit
4ff604e98f
1 changed files with 1 additions and 15 deletions
Loading…
Reference in new issue