Subject: Re: getaddrinfo() vs. JVM
To: Charles M. Hannum <abuse@spamalicious.com>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: tech-userlevel
Date: 01/09/2005 12:52:49
Charles M. Hannum wrote:
> > 2) Put a mutex around getservbyname() and/or getaddrinfo(). Is there a way
> > to do this in libc that will work both with and without libpthread?
>
> I've done this. See the following patches.
Is the mutex around the calls to _r() functions really needed?
If they are marked _r, they should already be reentrant, shouldn't they?
Jaromir
--
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.cz/
-=- We can walk our road together if our goals are all the same; -=-
-=- We can run alone and free if we pursue a different aim. -=-