This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Usage of strerror in natFileDescriptor.cc
- From: Tom Tromey <tromey at redhat dot com>
- To: Mark Wielaard <mark at klomp dot org>
- Cc: java at gcc dot gnu dot org
- Date: 17 Oct 2003 09:17:01 -0600
- Subject: Re: Usage of strerror in natFileDescriptor.cc
- References: <1066400355.1050.26.camel@localhost>
- Reply-to: tromey at redhat dot com
>>>>> "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