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

Re: [PATCH] posixify getppid on linux-multithread

Thread Previous | Thread Next
From:
Tony Cook
Date:
August 9, 2002 00:25
Subject:
Re: [PATCH] posixify getppid on linux-multithread
Message ID:
Pine.LNX.4.10.10208091721500.13812-100000@develop-help.com
On Tue, 6 Aug 2002, 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 ?

Does POSIX require getppid() to return 1 (the process id of init) if the
parent process exits?

Tony


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