Re: Is there a "PerlPreForkHandler"?

[prev] [thread] [next] [Date index for 2004/12/26]

From: Stas Bekman
Subject: Re: Is there a "PerlPreForkHandler"?
Date: 20:25 on 26 Dec 2004
Patrick LeBoutillier wrote:
> Hi all,
> 
> Just wondering if there is a way to install a handler that will get called
> everytime
> the parent Apache process is about to fork/spawn a new Apache child/worker.
> 
> I know the PerlChildInitHandler is called in the child right after the
> fork. What I want is
> a handler that is called in the parent right before the fork.

There is no such thing. But if you explain what you are trying to achieve 
may be we can suggest an alternative solution.

In mp2 there is the PostConfig [1] phase, which happens just before 
ChildInit [2].

[1] 
http://perl.apache.org/docs/2.0/user/handlers/server.html#C_PerlPostConfigHandler_
[2] 
http://perl.apache.org/docs/2.0/user/handlers/server.html#C_PerlChildInitHandler_

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Is there a "PerlPreForkHandler"?
Patrick LeBoutillier 20:11 on 26 Dec 2004

Re: Is there a "PerlPreForkHandler"?
Stas Bekman 20:25 on 26 Dec 2004

Re: Is there a "PerlPreForkHandler"?
Patrick LeBoutillier 00:18 on 27 Dec 2004

Re: Is there a "PerlPreForkHandler"?
Stas Bekman 00:36 on 27 Dec 2004

Re: Is there a "PerlPreForkHandler"?
David Nicol 03:26 on 27 Dec 2004

Re: Is there a "PerlPreForkHandler"?
Patrick LeBoutillier 15:06 on 27 Dec 2004

Generated at 12:15 on 16 Jan 2005 by mariachi v0.52