diff options
| author | Christian Heimes <christian@cheimes.de> | 2013-08-21 13:26:34 +0200 |
|---|---|---|
| committer | Christian Heimes <christian@cheimes.de> | 2013-08-21 13:26:34 +0200 |
| commit | 6acbe2aaa385ada342ac9421333fce083041f06f (patch) | |
| tree | b1de03775bdb9e03730fa8bb99d7b946986ce973 /configure | |
| parent | 5bb1b1dd6f94af0e8cb2d4a1686bc4882147ba66 (diff) | |
| parent | f77b4b20e931dd0247a176db856723fe1203d32e (diff) | |
| download | cpython-git-6acbe2aaa385ada342ac9421333fce083041f06f.tar.gz | |
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
@@ -9809,6 +9809,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 |
