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

Arjan van de Ven
2004-06-05T20:56:04Z

[-- Attachment #1: Type: text/plain, Size: 358 bytes --]

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 #2: Type: application/pgp-signature, Size: 189 bytes --]