]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 476622: Assure that mod_perl children always receive a different srand() seed
authormkanat%bugzilla.org <>
Thu, 12 Feb 2009 19:17:23 +0000 (19:17 +0000)
committermkanat%bugzilla.org <>
Thu, 12 Feb 2009 19:17:23 +0000 (19:17 +0000)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=gozer, a=mkanat

mod_perl.pl

index fe78c4be98bb60d3a4ba5ff6ac5528e463d01a20..1e5c7fc63357a708d2bab357aebb6bc1e9aca5c9 100644 (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