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: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 07 Oct 2011 18:52:26 +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
--- Comment #6 from Rich Felker <bugdal at aerifal dot cx> 2011-10-07 18:52:26 UTC ---
I think a reasonable solution that would definitely be conformant would be for
getenv and functions documented *by the standard* as depending on the
environment to remain as-is, and not perform any locking, but for getaddrinfo
and any other functions that use the environment but aren't documented by the
standard as doing so to obtain the environment lock before using getenv. Adding
locking to getaddrinfo would be a tiny cost anyway in comparison to all the
syscalls involved in performing a DNS lookup..
--
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.