From owner-freebsd-hackers Mon Aug 9 5:43:32 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from fanf.noc.demon.net (fanf.noc.demon.net [195.11.55.83]) by hub.freebsd.org (Postfix) with ESMTP id AFE1015226 for ; Mon, 9 Aug 1999 05:43:21 -0700 (PDT) (envelope-from fanf@demon.net) Received: from fanf by fanf.noc.demon.net with local (Exim 3.02 #13) id 11Dok0-000LN9-00; Mon, 09 Aug 1999 13:41:24 +0100 To: dan@trinsec.com From: Tony Finch Cc: hackers@freebsd.org Subject: Re: gethostbyaddr() and threads. In-Reply-To: <19990808204333.A40377@trinsec.com> Message-Id: Date: Mon, 09 Aug 1999 13:41:24 +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dan Moschuk 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