mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
b1973c252c
commit
f77b4b20e9
6 changed files with 123 additions and 0 deletions
11
configure
vendored
11
configure
vendored
|
@ -9791,6 +9791,17 @@ $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
|
|||
|
||||
;;
|
||||
esac
|
||||
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue