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 From: "Hannu E K Nevalainen" To: Subject: RE: pthreads and sockets - Cannot register window class error Date: Thu, 6 May 2004 22:18:58 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <20040506075921.GC12047@cygbert.vinschen.de> > From: Corinna Vinschen > Sent: Thursday, May 06, 2004 9:59 AM > 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 Thanks a lot. :-) Beeing a somewhat knowledgeable newbie is a pain at times. (What you do *not* know doesn't hurt you...) /Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E ** on a mailing list; please keep replies on that particular list ** -- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); -- --END OF MESSAGE-- -- 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/