This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/13271] getaddrinfo is not thread safe


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]