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 Date: Tue, 4 Oct 2005 16:04:21 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: select() hangs forever with Cygwin 1.5.18 on WinXP Message-ID: <20051004140421.GA15152@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <6BD989BB73712F41B1EDD1B8A32EA4C301697CEB AT EXCHANGEVS1 DOT comtechtel DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6BD989BB73712F41B1EDD1B8A32EA4C301697CEB@EXCHANGEVS1.comtechtel.com> User-Agent: Mutt/1.4.2i On Oct 4 09:43, Vladislav Grinchenko wrote: > Hi, > > I am trying to use UNIX domain sockets in cygwin environment. > A program in question works fine just on any other POSIX > OS I can get my hands on (Linux, FreeBSD, Solaris, ...). > However, running on cygwin, select() hangs forever. > > The program sets up 1 socket for Read mask and 2 sockets for > write mask to complete asynchronous connect. The timeout is > set to 1 second. What follows is the 'strace' of the relevant > portion. Looks like a select_socket thread is started and > properly detects data on all file descriptors, but it never > bubbles up to the application layer. > > Can anyone at least suggest something? Yes. First step, please test with the latest Cygwin developers snapshot, if the problem persists. See http://cygwin.com/snapshots/ If yes, send a *minimal* testcase to reproduce the problem. Minimal testcase means a short, concise source code, possibly written in pure C, which is compilable out of the box, with not more than the necessary lines of code to reproduce the effect. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT 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/