pthread safe name -> address resolution (under linux compat)

Steven Hartland killing at barrysworld.com
Fri Dec 19 05:21:04 PST 2003


An update on this is that the app in question will be running under
linux compat. So I suppose this questions changes to:
Is the linux compat version of gethostbyname_r thread safe?

    Steve
----- Original Message ----- 
From: "Steven Hartland" <killing at barrysworld.com>
To: <freebsd-hackers at freebsd.org>
Sent: Friday, December 19, 2003 12:30 PM
Subject: pthread safe name -> address resolution


> I've had a dig around but cant find any concrete answer
> to what to use for name resolution that is pthread safe.
> A number of people mention getaddrinfo and getipnodebyname
> but both are doc'd as not being thread safe.
> 
> Is there a solution to this is do we have to use mutex's?
> 
>     Steve



More information about the freebsd-hackers mailing list