Re: Apache::SizeLimit ( mp1 and mp2 )-> I think there is a logical error in the code ...

[prev] [thread] [next] [Date index for 2005/05/24]

From: Torsten Foertsch
Subject: Re: Apache::SizeLimit ( mp1 and mp2 )-> I think there is a logical error in the code ...
Date: 09:59 on 24 May 2005
--nextPart1800829.cX3mWYGRGR
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Tuesday 24 May 2005 11:48, Marc Gr=C3=A0cia wrote:
> > But there is a problem with Perls getppid() implementation. Modern Perls
> > issue the syscall only once and cache the result. Maybe you 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
> 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 functio=
n=20
that does what Perl is doing after a successful fork in the child. That als=
o=20
may help.

Torsten

--nextPart1800829.cX3mWYGRGR
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBCkvsYwicyCTir8T4RAp6lAKCgW+EJ1MCkWtKBjKo9STLtNsTJkgCgjdAD
BS8eEi9FZSPqItpyhjPCUOI=
=RnhZ
-----END PGP SIGNATURE-----

--nextPart1800829.cX3mWYGRGR--

Re: Apache::SizeLimit ( mp1 and mp2 )-> I think there is a logical error in the code ...
Torsten Foertsch 09:59 on 24 May 2005

Generated at 15:53 on 25 May 2005 by mariachi v0.52