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? TonyThread Previous | Thread Next