AW: Apache::SizeLimit ( mp1 and mp2 )-> I think there is a logical error in the code ...
[prev]
[thread]
[next]
[Date index for 2005/05/24]
.. So this is a perfect match for a PerlChildInitHandler - isn=B4t it ?
Cheers
Andreas
-----Urspr=FCngliche Nachricht-----
Von: Torsten Foertsch [mailto:torsten.foertsch@xxx.xxx]=20
Gesendet: Dienstag, 24. Mai 2005 12:00
An: modperl@xxxx.xxxxxx.xxx
Betreff: Re: Apache::SizeLimit ( mp1 and mp2 )-> I think there is a =
logical error in the code ...
On Tuesday 24 May 2005 11:48, Marc Gr=E0cia wrote:
> > But there is a problem with Perls getppid() implementation. Modern=20
> > Perls issue the syscall only once and cache the result. Maybe you=20
> > somehow hit that. Normally the cache is invalidated when Perl forks, =
> > but Apache does its own fork. Thus maybe the cache remains.
>
> In Apache::GTopLimit i had to modify the source to use Linux::Pid=20
> package to get the pid instead of the default function. If not allways =
> returned the parent pid. After all this, everything worked fine...
> It seems to me the same problem.
I've just uploaded Perl::AfterFork to CPAN. The module implements a =
function=20
that does what Perl is doing after a successful fork in the child. That =
also=20
may help.
Torsten
 |
AW: Apache::SizeLimit ( mp1 and mp2 )-> I think there is a logical error in the code ...
10:17 on 24 May 2005
|