summaryrefslogtreecommitdiff
path: root/include/mod_core.h
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-11-07 18:46:47 +0000
committerStefan Fritsch <sf@apache.org>2011-11-07 18:46:47 +0000
commit7c5a4c2bc9abf7d4dc1f329842cdb8d47c05862e (patch)
tree477795076a58363bd3b6e738831b3c90b5c2db73 /include/mod_core.h
parent629d9075cb439b3329a09a9f841bbf883453fd0b (diff)
downloadhttpd-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.h3
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