Date: Wed, 12 Apr 2000 07:36:19 -0400 (EDT) From: John Baldwin <jhb@FreeBSD.org> To: ming@yahoo-inc.com Cc: hackers@FreeBSD.org Subject: Re: Multithread safe gethostbyname() ? Message-ID: <200004121136.HAA32335@server.baldwin.cx> In-Reply-To: <200004120538.WAA17491@sharmas.dhs.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> In muc.lists.freebsd.hackers, you wrote: > > Is there a MT-safe implementation of gethostbyname() in FreeBSD (3.4/4.0)? > > On Solaris there is gethostbyname_r(). Calling gethostbyname() with in > two threads cause both threads to block. No. :( Until we get one you can work around it by using a mutex around calls to gethost* to allow only 1 thread to call them at a time. -- John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004121136.HAA32335>