diff options
author | Stefan Fritsch <sf@apache.org> | 2011-11-07 18:46:47 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-11-07 18:46:47 +0000 |
commit | 7c5a4c2bc9abf7d4dc1f329842cdb8d47c05862e (patch) | |
tree | 477795076a58363bd3b6e738831b3c90b5c2db73 /include/mod_core.h | |
parent | 629d9075cb439b3329a09a9f841bbf883453fd0b (diff) | |
download | httpd-7c5a4c2bc9abf7d4dc1f329842cdb8d47c05862e.tar.gz |
Call apr_random_after_fork() manually in the child processes because the MPMs
use plain fork() and not apr_proc_fork().
Also add some workaround for APR not changing the RNG state in the parent.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1198868 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/mod_core.h')
-rw-r--r-- | include/mod_core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mod_core.h b/include/mod_core.h index 58f3c93dcb..8e822d9b20 100644 --- a/include/mod_core.h +++ b/include/mod_core.h @@ -90,6 +90,9 @@ AP_DECLARE(int) ap_send_http_options(request_rec *r); /* Used for multipart/byteranges boundary string */ extern AP_DECLARE_DATA const char *ap_multipart_boundary; +/* Update RNG state in parent after fork */ +AP_CORE_DECLARE(void) ap_random_parent_after_fork(void); + #ifdef __cplusplus } #endif |