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


git-svn-id: svn://10.0.0.236/trunk@256205 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org
2009-02-12 19:17:23 +00:00
parent ac0169834b
commit 5a3c075d75

View File

@@ -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