Usage of strerror in natFileDescriptor.cc
Tom Tromey
tromey@redhat.com
Fri Oct 17 15:25:00 GMT 2003
>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:
Mark> While reading natFileDescriptor.cc I noticed the use of strerror(). Is
Mark> this funtion thread save? All calls are wrapped in a JvNewStringLatin1()
Mark> call so this might be save, but it seems there might be a small
Mark> opertunity for a race to occur when called from two threads at the same
Mark> time.
We should use strerror_r.
This is now bugzilla 12660.
Tom
More information about the Java
mailing list