Re: Fixing UML against NPTL (was: Re: [uml-devel] [PATCH] UML: UsePTRACE_KILL instead of SIGKILL to kill host-OS processes (take #2))
From: Christophe Saout
Date: Thu Nov 11 2004 - 13:43:06 EST
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:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil