This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13271] getaddrinfo is not thread safe
- From: "mol at astron dot nl" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Wed, 12 Oct 2011 08:21:10 +0000
- Subject: [Bug libc/13271] getaddrinfo is not thread safe
- Auto-submitted: auto-generated
- References: <bug-13271-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13271
Jan David Mol <mol at astron dot nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #7 from Jan David Mol <mol at astron dot nl> 2011-10-12 08:21:10 UTC ---
Reopened; this ticket cannot be regarded as 'invalid', nor 'resolved', because,
as mentioned earlier, POSIX and glibc docs do allow setenv and getaddrinfo to
run concurrently.
Rich Felker's idea of wrapping all getenv calls inside glibc is good, assuming
the number of functions needing access to that global lock is limited. Getenv
itself needs only very weak (in fact, insanely weak) guarantees by POSIX, so
indeed that doesn't need change.
--
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.