Hi -
I am using mod-perl 1.3.41 with perl 5.8.9.
The only perl I have in my config file is:
warn "This is a section in process $$ at time @{[time]}\n";
sleep(5);
warn "Done sleeping\n";
When I start it up in single process mode (-X), I'll something like
this on stderr (to the console):
E R wrote:
...
Is this "normal", and what can I do so that the code in
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
The 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 wrote:
> E R wrot
E R wrote:
The 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 mod_perl 1.