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

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.


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