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

From: Arjan van de Ven
Date: Sat Jun 05 2004 - 15:57:08 EST


On Sat, Jun 05, 2004 at 01:45:33PM -0700, Linus Torvalds wrote:
> so I wonder if either the Fedora libc always adds that CLONE_THREAD thing
> to the clone() calls, or whether the FC2 kernel is buggy.

... or glibc internally caches the getpid() result and doesn't notice the
app calls clone() internally... strace seems to show 1 getpid() call total
not 2.

Attachment: pgp00000.pgp
Description: PGP signature