This is the mail archive of the
mailing list for the Cygwin project.
Re: Help with unix sockets and poll
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: Cygwin <cygwin at cygwin dot com>
- Date: Tue, 27 Aug 2002 14:03:32 +0200
- Subject: Re: Help with unix sockets and poll
- References: <007001c24da6$858b3d40$0b01a8c0@Camelot>
- Reply-to: cygwin at cygwin dot com
On Tue, Aug 27, 2002 at 10:35:35AM +0200, Pierluigi 'Lanugo' Rolando wrote:
> 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 Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:firstname.lastname@example.org
Red Hat, Inc.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html