As I'm working through the tutorials docs, I find that some of the docs weren't updated when we changed things in the core. One of those things is the relatively recent big change on END blocks behavior. Untill now mp2 was running END blocks compiled at the server startup only once when the parent process shutdowns (which is what the docs said). However after the change, children inherit the END blocks from the parent and will run them just like fork does:

% perl -le 'END { print "this is the end $$" }; fork'
this is the end 23659
this is the end 23658

This is also how mod_perl 1 works. If someone wants to run something only once they should register a cleanup handler on the $conf_pool or similar pool at the server startup.

This is just a heads up. I'm updating the docs to reflect the reality at this very moment :)


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to