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

Re: [PATCH] posixify getppid on linux-multithread

Thread Previous | Thread Next
From:
Arthur Bergman
Date:
August 6, 2002 23:40
Subject:
Re: [PATCH] posixify getppid on linux-multithread
Message ID:
69973DFE-A9D0-11D6-B130-003065D64CBE@contiller.se

On tisdag, augusti 6, 2002, at 09:56 , Rafael Garcia-Suarez wrote:

> Basically this patch optionally stores the ppid in a global PL_ppid
> variable. (alternative : store it in an undocumented ${^PPID} variable,
> the same way than $$ is initialized. Perhaps better for binary
> compatibility -- this new global var is only created on Linux with
> threads.) The code introduced by this patch is compiled only if the C
> preprocessor symbol THREADS_HAVE_PIDS is defined. It's defined currently
> by hints/linux.sh if "usethreads" is defined. (so it's possible to
> disable it, if future versions of linux have a more standard getppid().)
> Looks OK ?
>
> Include docs and a new test file t/op/getpid.t (so we can detect if 
> this is
> needed on other platforms ;-). Needs to make regen_headers.

I would store it in ${^PPID} rather than a global PL_ppid variable.

Arthur


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