This is the mail archive of the cygwin@cygwin.com 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: Help with unix sockets and poll


On Tue, Aug 27, 2002 at 10:35:35AM +0200, Pierluigi 'Lanugo' Rolando wrote:
> Hi,
> I've tried to port some code that relies heavily on unix domain sockets for
> IPC from Linux to Cygwin, and I've encountered some problems. It seems that
> either unix domain sockets (created by socketpair() ) or the poll() library
> call are broken.
> I'm attaching the smallest test case I've been able to write that reproduces
> the problem. Under linux (2.4.19/2.4.18 w/ glibc 2.2.4) the program
> terminates correctly, while under cygwin it reports a POLLERR after the
> first character is written on the socket. My cygwin DLL is version

Thanks for the testcase!  I'm just investigating that and it looks
like an error in Cygwin.  As a workaround, don't check for POLLERR
in your application for now.  It doesn't have a useful meaning, AFAICS.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]