On 10/17/05, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote:
>
> Am 17.10.2005 um 03:36 schrieb Stephen Deasey:
>
> > Why can't we fall back to using gethostbyname() on Darwin with it's
> > mt-unsafe getaddrinfo()?  gethostbyname() is also mt-unsafe, but we
> > already have a critical section around that.  If we have critical
> > sections around two separate dns calls which return the same results,
> > there's really no advantage in choosing one over the other, right?
> >
> >
>
> Hm... there IS a hidden one!
>
> Tcl core still uses MT-unsafe gethostbyname. If we'd to use the
> gethostbyname as well, no matter how protected we have made it
> within our process, the chances are we'd end up trampling on
> each other feet.
>
> On the short term I prefer this one. On the mid term I will replace
> the gethostbyname calls in Tcl core with something like dns.c in
> NS today.


Groovy.

Reply via email to