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

Re: [PATCH] posixify getppid on linux-multithread

Thread Previous | Thread Next
Tony Cook
August 9, 2002 00:25
Re: [PATCH] posixify getppid on linux-multithread
Message ID:
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/ 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?


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