develooper Front page | perl.perl5.porters | Postings from August 2002

Re: [PATCH] posixify getppid on linux-multithread

Thread Previous | Thread Next
From:
hv
Date:
August 8, 2002 18:52
Subject:
Re: [PATCH] posixify getppid on linux-multithread
Message ID:
200208090158.g791wIT08871@crypt.compulink.co.uk
Rafael Garcia-Suarez <rgarciasuarez@free.fr> wrote:
:Arthur Bergman wrote:
:> I would store it in ${^PPID} rather than a global PL_ppid variable.
:
:The same patch, implemented with ${^PPID} instead of PL_ppid.
:Note that ${^PPID} is defined only on linux/ithreads.

I'm not sure that I understand the choice of approach: given the
title of this thread, it would seem to me to make more sense to
make POSIX::getpp?id return the real pp?id regardless, and leave
the inbuilt functions to lie as currently.

If it makes sense to do it this way, why define $^PPID only under
linux/ithreads? If I want the real ppid I'd have thought it easier
to need only a single portable mechanism to get it.

Hugo

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About