Commit 1708f41a authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

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
parent 59f642f7
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment