This makes sure that each child has independent random numbers even if
someone called rand() before the fork. Starman does this, and it's
a good idea.
# change the name of this process as it appears in ps(1) output.
$this->pm_change_process_name("perl-fcgi");
+
+ # Re-srand in case someone called rand before the fork, so that
+ # children get different random numbers.
+ srand;
}
=head2 pm_pre_dispatch