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 Message-ID: <4098E04B.34D2866B@dessent.net> Date: Wed, 05 May 2004 05:38:35 -0700 From: Brian Dessent Organization: My own little world... MIME-Version: 1.0 To: "cygwin AT cygwin DOT com" Subject: Re: pthreads and sockets - Cannot register window class error References: <4098760F DOT CDB4F630 AT hot DOT pl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Jacek Trzmiel wrote: > void test() > { > /* go find out about the desired host machine */ > struct hostent *he = gethostbyname(HOST); > if (he == 0) { > perror("gethostbyname"); > exit(1); > } Just a wild guess, but gethostbyname() is probably not reentrant and can't be called from threads like that. Brian -- 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/