Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Jason Curl <j.m.curl@optusnet.com.au>
Subject: Re: select() read() and write() on /dev/console
Date: Sun, 21 Nov 2004 14:34:01 +0100
Lines: 29
Message-ID: <cnq5g9$qia$1@sea.gmane.org>
References: <Pine.LNX.4.44.0411191834400.1687-100000@centurai.sps.mot.com> <20041119183842.GB26102@trixie.casa.cgf.cx>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: 83.133.12.69
User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103)
In-Reply-To: <20041119183842.GB26102@trixie.casa.cgf.cx>
X-IsSubscribed: yes

Christopher Faylor wrote:
> On Fri, Nov 19, 2004 at 06:46:56PM +0100, Jason Curl wrote:
> 
>>My question, how do I go about investigating what the root cause is? Has 
>>anybody else seen similar issues and been able to work around it? I'm 
>>stuck and I've never seen the source code to cygwin before.
> 
> 
> If you suspect a problem with the cygwin DLL then you can build a
> debugging version of the cygwin DLL and debug it using gdb.
> 
> Most of the console handling is in fhandler_console.cc.  The select
> handling is in select.cc.  Look for the string "console" there.
> 
> Instructions for building the DLL are in the FAQ:
> 
> http://cygwin.com/faq/faq_3.html#SEC101
> 

Created a test to try and localise the problem a little more. Just using 
the console on it's own doesn't appear to create the problem (I write to 
the console, read from the console).

The application I've written that shows this problem is involving a 
serial port (in/out), a disk file for logging (out) and the console 
(in/out). I'll keep replying to this post as I find out more information.

Thanks,
Jason.


--
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/

