Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Mon, 12 Aug 2002 17:07:35 +0400
From: egor duda <deo@logos-m.ru>
Reply-To: egor duda <cygwin@cygwin.com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <122337499789.20020812170735@logos-m.ru>
To: "Michael Besl" <michael.besl@dwtgmbh.de>
CC: cygwin@cygwin.com
Subject: Re: c_cc[VTIME] not working under NT
In-Reply-To: <003101c241eb$7cda5a80$2901a8c0@verleinix.dwthome.de>
References: <003101c241eb$7cda5a80$2901a8c0@verleinix.dwthome.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi!

Monday, 12 August, 2002 Michael Besl michael.besl@dwtgmbh.de wrote:

MB> i have written a serial communication application that uses the normal
MB> com-ports. I have compiled it under cygwin DLL 1.3.13 (latest distribution)
MB> and it works perfect with win98, but when i use the same DLL and the same
MB> program under winNT, then the c_cc[VTIME] seems not to work. So the winNT is
MB> waiting forever for a byte at the COM port. Do i have to change here
MB> something at the source that it will also run under winNT?

It's a bug in cygwin. Hopefully, it will be fixed soon (i have a
working patch but it needs some cleanup).

Meanwhile, as a workaround, you may want to use select() before read()
and doesn't rely on termios features like this. Using select() is a
cleaner solution because it would work on any type of input, not just
ttys.

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19


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

