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 time/19179] gmtime_r internally calls getenv("TZ") which is not thread-safe


https://sourceware.org/bugzilla/show_bug.cgi?id=19179

--- Comment #2 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
getenv is thread-safe (so long as other threads aren't modifying the
environment), so if getenv() was the problem, this bug would be invalid.

But tzset_internal writes globals, and is definitely not thread-safe.

-- 
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]