This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthreads and sockets - Cannot register window class error


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@cygwin.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]