diff options
author | Christian Heimes <christian@cheimes.de> | 2013-08-21 11:26:05 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-08-21 11:26:05 (GMT) |
commit | 0d604cf65e66f20fca345c4da4526552622a2501 (patch) | |
tree | a48fb764273b4e83154e981da9beaf3589413191 /configure | |
parent | c360389453d50ff3fdebea052a0f436be41cc8c4 (diff) | |
download | cpython-0d604cf65e66f20fca345c4da4526552622a2501.zip cpython-0d604cf65e66f20fca345c4da4526552622a2501.tar.gz cpython-0d604cf65e66f20fca345c4da4526552622a2501.tar.bz2 |
Issue #18747: Re-seed OpenSSL's pseudo-random number generator after fork.
A pthread_atfork() child handler is used to seeded the PRNG with pid, time
and some stack data.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -9630,6 +9630,17 @@ $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h fi done + for ac_func in pthread_atfork +do : + ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" +if test "x$ac_cv_func_pthread_atfork" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_PTHREAD_ATFORK 1 +_ACEOF + +fi +done + fi |