in reply to Re: Re: Re: RFC : Pragma vs. Module
in thread RFC : Pragma vs. Module
My apologies. You are completely correct, INIT and CHECK will not run anywhere in mod_perl. I checked every possible situation I could think of in one of my current mod_perl projects, and nothing worked. So I will now put my foot in my mouth.
Apparently even modules loaded with PerlModule and PerlRequire are at some level eval-ed. Which to me seems ugly, but not being a C programmer or Stas Beckmen, who am I to complain.
After some reading though, it seems to me that the PerlRestartHandler and PerlChildInitHandler could potentially be used to accomplish similar functionality. PerlRestartHandler happens before Apache pre-forks all the children, and PerlChildInitHandler runs at the begining of each child process. Has anyone ever tried to use these as CHECK/INIT replacements?
-stvn
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: RFC : Pragma vs. Module
by Aristotle (Chancellor) on Mar 15, 2004 at 09:21 UTC | |
by stvn (Monsignor) on Mar 15, 2004 at 15:10 UTC | |
by Aristotle (Chancellor) on Mar 15, 2004 at 19:54 UTC | |
by stvn (Monsignor) on Mar 15, 2004 at 20:39 UTC |