summaryrefslogtreecommitdiffstats
path: root/server/main.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-11-07 21:57:02 +0100
committerStefan Fritsch <sf@apache.org>2011-11-07 21:57:02 +0100
commitb791885badd4b252a60a6eaa5fc7d12ceb833e93 (patch)
treee5c7cfb4f31476e141ed3ebdea92c71470a25ecf /server/main.c
parentAlso do length check if the last line is not LF terminated (diff)
downloadapache2-b791885badd4b252a60a6eaa5fc7d12ceb833e93.tar.xz
apache2-b791885badd4b252a60a6eaa5fc7d12ceb833e93.zip
Only init the RNG once at startup. This saves some entropy and works around the APR bug
fixed in r1198921 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1198930 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/main.c')
-rw-r--r--server/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/main.c b/server/main.c
index 70e698b428..6c2685dbee 100644
--- a/server/main.c
+++ b/server/main.c
@@ -34,6 +34,7 @@
#include "http_log.h"
#include "http_config.h"
#include "http_core.h"
+#include "mod_core.h"
#include "http_request.h"
#include "http_vhost.h"
#include "apr_uri.h"
@@ -459,6 +460,7 @@ int main(int argc, const char * const argv[])
ap_pglobal = process->pool;
pconf = process->pconf;
ap_server_argv0 = process->short_name;
+ ap_init_rng(ap_pglobal);
/* Set up the OOM callback in the global pool, so all pools should
* by default inherit it. */