Tony Cook wrote: > On Thu, 1 Aug 2002, Rafael Garcia-Suarez wrote: > > >>Elizabeth Mattijsen wrote: >> >>>Is it possible to get at the process number of the process handling a thread? >> >>POSIX::getpid should work, am I correct ? > > > POSIX::getpid() just returns $$
That's right, I should have looked at it instead. So I guess the consistent way to solve the problem is to add magic to $$, at least for threaded perls on platforms where threads have a separate PID. (Is this the case for other platforms than Linux ?) -- Rafael Garcia-Suarez