platform_bionic/libc/upstream-openbsd
Josh Gao c80ffece02 Defer registration of the arc4random fork-detect handler.
Previously, arc4random would register a fork-detecting pthread_atfork
handler to not have to call getpid() after a fork. pthread_atfork uses
pthread_mutex_lock, which requires the current thread to be initialized,
preventing the use of arc4random for initializing the global stack guard,
which needs to happen before the main thread has been initialized.

Extract the arc4random fork-detection flag and use the existing
arc4random fork handler to set it.

Bug: http://b/29622562
Change-Id: I98c9329fa0e489c3f78cad52747eaaf2f5226b80
2016-06-28 15:52:59 -07:00
..
android Defer registration of the arc4random fork-detect handler. 2016-06-28 15:52:59 -07:00
lib/libc Fix b64_pton. 2016-04-06 12:08:45 -07:00
README.txt Clean up and document our hacks for building BSD source. 2014-04-21 17:13:46 -07:00

This directory contains upstream OpenBSD source. You should not edit these
files directly. Make fixes upstream and then pull down the new version of
the file.

TODO: write a script to make this process automated.