Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Aug 1999 13:41:24 +0100
From:      Tony Finch <dot@dotat.at>
To:        dan@trinsec.com
Cc:        hackers@freebsd.org
Subject:   Re: gethostbyaddr() and threads.
Message-ID:  <E11Dok0-000LN9-00@fanf.noc.demon.net>
In-Reply-To: <19990808204333.A40377@trinsec.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Dan Moschuk <dan@trinsec.com> wrote:
>
>After quite an exhausting night (of all the ways I didn't want to spend my
>Sunday...) I've managed to track down a problem that has been frustrating me
>all night.  The problem exists with multiple threads calling gethostbyaddr()
>(not necessarily at the same time).  

src/lib/libc/net/gethostbydns.c seems to use a load of static
variables in a non-thread-safe fashion.

Tony.
-- 
f.a.n.finch    dot@dotat.at    fanf@demon.net    e pluribus unix


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?E11Dok0-000LN9-00>