View Single Post

   
  #1 (permalink)  
Old 01-05-2008, 03:22 AM
Vlada
 
Posts: n/a
Default strerror thread safe version

I paid a big price debugging core dumps to figure out that AIX
strerror is not thread safe (as it is on Solaris and HPUX).

Does anyone have any suggestion how to replace strerror() with some
code that is thread safe? Having a mutex around it sounds like the
last option because it would be hard to share the same mutex in all
different shared libraries that my product consists of.

Thanks,
Vlad
Reply With Quote