From owner-freebsd-questions Sat Jul 22 6:43:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ns.tar.com (ns.tar.com [204.95.187.2]) by hub.freebsd.org (Postfix) with ESMTP id AC55037B894 for ; Sat, 22 Jul 2000 06:43:14 -0700 (PDT) (envelope-from dick@tar.com) Received: from test.tar.com (test [204.95.187.4]) by ns.tar.com (8.9.3/8.9.3) with ESMTP id IAA71322; Sat, 22 Jul 2000 08:43:09 -0500 (CDT) (envelope-from dick@tar.com) Received: by test.tar.com (Postfix, from userid 1000) id 80E4081DA5; Sat, 22 Jul 2000 08:43:08 -0500 (CDT) Date: Sat, 22 Jul 2000 08:43:08 -0500 From: "Richard Seaman, Jr." To: Jan Grant Cc: Tan Juay Kwang , freebsd-questions@FreeBSD.ORG Subject: Re: pthreads on 4.0-STABLE Message-ID: <20000722084307.B378@tar.com> References: <20000721114316.A378@tar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from Jan.Grant@bristol.ac.uk on Fri, Jul 21, 2000 at 08:54:35PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jul 21, 2000 at 08:54:35PM +0100, Jan Grant wrote: > > My mistake. It should be getaddrinfo. But, don't know if > > its on RedHat. > > Is this now working and MT-safe? Last time I looked, it was still > causing a hang. getaddrinfo() has worked fine here for several months, though I have only used it in single threaded programs, and its not stressed in the apps I've used it it. As to whether its thread-safe, from src/lib/libc/net/getaddrinfo.c: " Issues to be discussed: - Thread safe-ness must be checked." [snip] " Note: - We use getipnodebyname() just for thread-safeness. There's no intent to let it do PF_UNSPEC (actually we never pass PF_UNSPEC to getipnodebyname()." -- Richard Seaman, Jr. email: dick@tar.com 5182 N. Maple Lane phone: 262-367-5450 Nashotah WI 53058 fax: 262-367-5852 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message