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

From: Robert Love
Date: Sat Jun 05 2004 - 18:22:52 EST


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


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/