|
Re: Apache2 CWD Non-threaded MPM: msg#00259apache.mod-perl
Joshua Bernstein wrote: Hey All, You are talking about ModPerl::Registry, not mod_perl 2.0 in general. ModPerl::Registry will always do the same thing, be it the prefork mpm or the threaded mpm. Because the same code should run identically no matter what the mpm is used. Therefore if chdir() cannot be used with the threaded mpm it won't work with the prefork mpm as well. Solution 1: Subclass ModPerl::Registry as ModPerl::RegistryPreFork and do whatever is fine with prefork. Subclassing the new registry family is extremely easy, though the API hasn't been frozen yet. See ModPerl::RegistryCooker for more info. Solution 2: Arthur Bergman is working on ex::threads::safecwd, which should resolve the problem for threaded mpms. So once it's available we can use chdir() in ModPerl::Registry again. __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@xxxxxxxxxx http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: apache mod_perl + suid question: 00259, pandit_tushar |
|---|---|
| Next by Date: | Re: apache/mod_perl help: 00259, Stas Bekman |
| Previous by Thread: | Apache2 CWD Non-threaded MPMi: 00259, Joshua Bernstein |
| Next by Thread: | apache/mod_perl help: 00259, Dinesh Patel |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |