Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 6 May 2004 09:59:21 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: pthreads and sockets - Cannot register window class error Message-ID: <20040506075921.GC12047@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20040505210340 DOT GB321 AT coe DOT bosbc DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i On May 6 01:47, Hannu E K Nevalainen wrote: > > >Just a wild guess, but gethostbyname() is probably not reentrant and > > >can't be called from threads like that. > > > > Unless HOST is a numeric IP address, gethostbyname should be properly > > reentrant. The only time gethostbyname is not thread safe is when it is > > resolving a numeric IP. > > > > cgf > > Is this specifically for cygwin, or common place? Cygwin. Common is what is described in SUSv3. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Co-Project Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/