---Brian McGovern said: > [snip] > > gethostbyaddr... actually, most of the gethostby* functions... are not > thread safe. They all use a static buffer in the library. > > Therefore, with threads, if you don't take precautions, I'd expect your > results to be odd. > -Brian > Couldn't this be easily fixed? I haven't looked at the source yet, but I believe you could replaced the static buffers with a dynamically-allocated list of buffers, with one for each thread using the gethost functions. Or perhaps you could just eliminate all the static stuff altogether? -Joe To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- gethostbyaddr() and threads. Dan Moschuk
- Re: gethostbyaddr() and threads. Tony Finch
- Re: gethostbyaddr() and threads. Dan Moschuk
- Re: gethostbyaddr() and threads. Wes Peters
- Re: gethostbyaddr() and threads. Brian McGovern
- Re: gethostbyaddr() and threads. Joe Groff
- Re: gethostbyaddr() and threads. Brian McGovern
- Re: gethostbyaddr() and threads. Steve Tarkalson
- Re: gethostbyaddr() and threads. Joe Groff
- Re: gethostbyaddr() and threads. Louis A. Mamakos
- Re: gethostbyaddr() and threads. Joe Groff
- Re: gethostbyaddr() and threads. Wes Peters
- Re: gethostbyaddr() and threads... Dan Moschuk
- Re: gethostbyaddr() and thr... Wes Peters
- Re: gethostbyaddr() and thr... Kip Macy
- Re: gethostbyaddr() and threads. Nate Williams

