This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6399] gettid() should have a wrapper
- From: "mtk.manpages at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 09 Feb 2013 02:06:11 +0000
- Subject: [Bug libc/6399] gettid() should have a wrapper
- Auto-submitted: auto-generated
- References: <bug-6399-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=6399
--- Comment #15 from Michael Kerrisk <mtk.manpages at gmail dot com> 2013-02-09 02:06:11 UTC ---
(In reply to comment #11)
> With that said, most of the problems with caching pid/tid come from use of
> clone() (or worse, vfork) directly by applications,
Not just that. Also, the caching of PIDs forced some limitations on how PID
namespaces could be implemented, AFAIK.
> Anyway, I'm pretty indifferent on tid caching -- I don't see it as necessary,
> but I don't think it would be a problem, either.
Given the history, I'd say caution is the best approach--i.e., don't cache.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.