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:
Christian Heimes 2013-08-21 13:26:05 +02:00
parent b1973c252c
commit f77b4b20e9
6 changed files with 123 additions and 0 deletions

11
configure vendored
View file

@ -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