Re: Fixing UML against NPTL (was: Re: [uml-devel] [PATCH] UML: Use PTRACE_KILL instead of SIGKILL to kill host-OS processes (take #2))

Christophe Saout
2004-11-11T18:35:13Z

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

Am Donnerstag, den 11.11.2004, 12:45 -0500 schrieb Daniel Jacobowitz:

> Glibc caches the PID. If you're going to use clone directly, use the
> gettid/getpid syscall directly. It's kind of rude that glibc breaks
> getpid in this way; I recommend filing a bug in the glibc bugzilla at
> sources.redhat.com.

If glibc insists on caching the pid, it could also simply invalidate the
pid cache in the clone function.

[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 189 bytes --]