Re: code in perl sections executed twice in same process?

2009-11-17 Thread E R
The perl sections don't seem to be executed in the children. Is there a way to determine which pass you are in? For large mod_perl apps, is there a way to avoid loading your code in twice? Note I am using mod_perl 1.3.41. Thanks, ER On Mon, Nov 16, 2009 at 4:41 PM, André Warnier

Re: code in perl sections executed twice in same process?

2009-11-17 Thread Adam Prime
E R wrote: The perl sections don't seem to be executed in the children. use a PerlChildInitHandler if you want to run code in the children. Is there a way to determine which pass you are in? For large mod_perl apps, is there a way to avoid loading your code in twice? Note I am using

code in perl sections executed twice in same process?

2009-11-16 Thread E R
Hi - I am using mod-perl 1.3.41 with perl 5.8.9. The only perl I have in my config file is: Perl warn This is a perl section in process $$ at time @{[time]}\n; sleep(5); warn Done sleeping\n; /Perl When I start it up in single process mode (-X), I'll something like this on stderr (to the

Re: code in perl sections executed twice in same process?

2009-11-16 Thread André Warnier
E R wrote: ... Is this normal, and what can I do so that the code in Perl sections is only executed once in the parent process? I believe it is normal, in the sense that Apache actually parses its configuration at least twice : one time just for checking, then it throws everything away and