This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Caching of PID/TID after fork
- From: Robert Święcki <robert at swiecki dot net>
- To: Paul Pluzhnikov <ppluzhnikov at google dot com>
- Cc: GLIBC Devel <libc-alpha at sourceware dot org>
- Date: Thu, 6 Oct 2016 19:03:17 +0200
- Subject: Re: Caching of PID/TID after fork
- Authentication-results: sourceware.org; auth=none
- References: <CAP145pj+yVz_7ZF8_dNqZ2NE22A_O5QyT195Gy0TgvKq1j3skw@mail.gmail.com> <CALoOobNTyKufxQOrHBNeaXxtH_28c=VCbqkpp9SBwwg+KpQFww@mail.gmail.com>
3. Provide clone() wrapper, which doesn't impose additional
restrictions over kernel's __NR_clone and which updates the TID/PID
cache.
2016-10-06 18:33 GMT+02:00 Paul Pluzhnikov <ppluzhnikov@google.com>:
> On Thu, Oct 6, 2016 at 9:13 AM, Robert Święcki <robert@swiecki.net> wrote:
>
>> This has probably been debated a lot of times in the past, but...
>
> We should probably mention that caching of PID has caused bugs in the past, e.g.
> https://sourceware.org/bugzilla/show_bug.cgi?id=19957
> https://sourceware.org/ml/libc-alpha/2006-07/msg00123.html
>
> There is also
> http://www.eglibc.org/archives/issues/msg00061.html
> http://yarchive.net/comp/linux/getpid_caching.html
>
> --
> Paul Pluzhnikov
--
Robert Święcki