summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-02-12 20:14:56 +0100
committermkanat%bugzilla.org <>2009-02-12 20:14:56 +0100
commit1708f41aa376f3385f1bd0b90e3b1741961ec89d (patch)
treed3678d4a51766ac182933b05bbe27bf7081a077e
parent59f642f7dd0626db80a94da0f625678c0ebbf506 (diff)
downloadbugzilla-1708f41aa376f3385f1bd0b90e3b1741961ec89d.tar.gz
bugzilla-1708f41aa376f3385f1bd0b90e3b1741961ec89d.tar.xz
Bug 476622: Assure that mod_perl children always receive a different srand() seed
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=gozer, a=mkanat
-rw-r--r--mod_perl.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod_perl.pl b/mod_perl.pl
index fe78c4be9..1e5c7fc63 100644
--- a/mod_perl.pl
+++ b/mod_perl.pl
@@ -53,6 +53,8 @@ my $cgi_path = Bugzilla::Constants::bz_locations()->{'cgi_path'};
# Set up the configuration for the web server
my $server = Apache2::ServerUtil->server;
my $conf = <<EOT;
+# Make sure each httpd child receives a different random seed (bug 476622)
+PerlChildInitHandler "sub { srand(); }"
<Directory "$cgi_path">
AddHandler perl-script .cgi
# No need to PerlModule these because they're already defined in mod_perl.pl