summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-08-21 13:26:05 +0200
committerChristian Heimes <christian@cheimes.de>2013-08-21 13:26:05 +0200
commitf77b4b20e931dd0247a176db856723fe1203d32e (patch)
tree2db44f24a8c5695c53df730205a043d11fb6c272 /configure
parentb1973c252c2eec757eaa067afaf593c2cc5ea8db (diff)
downloadcpython-git-f77b4b20e931dd0247a176db856723fe1203d32e.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-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index a1b7bff2d2..9bffbf3f5f 100755
--- a/configure
+++ b/configure
@@ -9794,6 +9794,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