delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/14/17:39:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: Serial port problems with cygwin1.dll 1.3.15 on Win98SE
Date: Thu, 14 Nov 2002 17:40:16 -0500
Message-ID: <59A835EDCDDBEB46BC75402F4604D5528F74BE@elmer>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Sergei Okhapkin" <sokhapkin AT LEAPSTONE DOT com>
To: "Ton van Overbeek" <v-overbeek AT cistron DOT nl>, <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id gAEMdQj08425

Could you compile cygwin1.dll with the following patch:

diff -u -p -r1.35 fhandler_serial.cc
--- fhandler_serial.cc  7 Nov 2002 18:47:21 -0000       1.35
+++ fhandler_serial.cc  14 Nov 2002 22:37:58 -0000
@@ -420,8 +420,8 @@ fhandler_serial::ioctl (unsigned int cmd

            DWORD cb;
            DWORD mcr;
-           if (!DeviceIoControl (get_handle (),
IOCTL_SERIAL_GET_DTRRTS,
-                                 NULL, 0, &mcr, 4, &cb, 0) || cb != 4)
+           if (1/*!DeviceIoControl (get_handle (),
IOCTL_SERIAL_GET_DTRRTS,
+                                 NULL, 0, &mcr, 4, &cb, 0) || cb !=
4*/)
              ipbuffer |= rts | dtr;
            else
              {

-----Original Message-----
From: Ton van Overbeek [mailto:v-overbeek AT cistron DOT nl] 
Sent: Thursday, November 14, 2002 5:07 PM
To: Sergei Okhapkin; cygwin AT cygwin DOT com
Subject: RE: Serial port problems with cygwin1.dll 1.3.15 on Win98SE


Some more input.
Attached strace output from a successfull run with the cygwin-1.3.14
dll. What I can spot in the log is that when com4 is read it now has a
read timeout of 1000 (vtime=1000), while in the unsuccessfull runs vmin
was 0. Does that ring any bells ?

Ton van Overbeek

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019