Peter Rothermel wrote:
> greetings,
> 
> I'm looking for the documentation that describes how
> PerlChildInitHandlers work with multiple threads on
> Win32 platforms.
> 
> Here's a specific question:
> 
> I have the following in my httpd.conf:
> 
> <IfModule mpm_winnt.c>
> ThreadsPerChild 10
> MaxRequestsPerChild  0
> </IfModule>
> 
> ....
> 
> 
> PerlChildInitHandler Apache::foo->genkey
> 
> Will the genkey method get execute at the
> initialization of each thread?

Apache doesn't provide such a hook yet. May be in the future.

child_init is for child process init, not threads.
http://perl.apache.org/release/docs/2.0/user/handlers/handlers.html#PerlChildInitHandler

what are you trying to do?

You should try to write your code in mpm-agnostic way if possible. so 
the same code can run under various mpms.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Reply via email to