Subject: Re: pthreads and sockets - Cannot register window class error
From: Brian Dessent <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Wed, 05 May 2004 05:38:35 -0700

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/