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

Re: [PATCH] posixify getppid on linux-multithread

Thread Previous | Thread Next
Arthur Bergman
August 6, 2002 23:40
Re: [PATCH] posixify getppid on linux-multithread
Message ID:

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/ 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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About