Re: clone() <-> getpid() bug in 2.6?

Robert Love
2004-06-05T23:19:57Z

On Sat, 2004-06-05 at 16:07 -0700, Davide Libenzi wrote:

> It is likely used by pthread_self(), that is pretty much performance
> sensitive. I'd agree with Ulrich here.

I think it would want gettid(), not getpid(), for that. CLONE_THREAD
behavior has getpid() return the same PID for all threads..

Robert Love