[Gllug] Problems with getppid in Perl 5.8.x
David Godfrey
dave at lists.deltass.co.uk
Sat Feb 5 04:43:05 UTC 2005
Roy Drinkwater wrote:
> Are there any Perl guru's out there who can help me with this one? We have
> an enormous amount of code with embedded getppid so a quick solution is
> preferred.
>
> The following perl module when invoked on perl 5.6.0 works fine, but with
> perl 5.8.5 or 5.8.3 it never returns with 0 (i.e. hangs in the inner fork
> because getppid always has the PID of the "half-way" child even after it has
> died.
I'm not a Perl guru, but I think replacing getppid with
Linux::Pid::getppid() should do the trick.
HTH
Regards
--
Dave Godfrey
dave at deltass.co.uk
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list