delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/01/24/15:30:49

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.4 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_33,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20090122155522.GA5369@ednor.casa.cgf.cx>
References: <7701e1400901220725r5712f806sff846b9aff8b4be3 AT mail DOT gmail DOT com> <20090122155522 DOT GA5369 AT ednor DOT casa DOT cgf DOT cx>
Date: Sat, 24 Jan 2009 15:30:34 -0500
Message-ID: <7701e1400901241230k43f9f8cbub8740e7f517ab8e4@mail.gmail.com>
Subject: Re: Problem using select() with com0com virtual serial ports
From: Paul Ingemi <pingemi AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

* On Thu, Jan 22, 2009 at 10:55:22AM -0500 Christopher Faylor wrote:
> On Thu, Jan 22, 2009 at 10:25:32AM -0500, Paul Ingemi wrote:
[...]
> It is a simple enough hack that I don't mind adding it, if it fixes your
> problem but I am not convinced that your driver is operating correctly.
>
> As I had added serial port access to the Windows version of VICE one or
> two months ago, I can tell that the com0com driver is indeed buggy.
>
> IMHO, the better solution is to fix com0com, and not to apply some
> hotfixes to other software (cygwin, VICE, whatever). That's the approach
> I followed, too, ignoring com0com completely. If I might have some time,
> I might want to debug com0com myself, but don't hold your breath on it.

I agree and adding a hack to cygwin isn't necessary due to the
existance of a workaround. That said, I think it's premature to blame
com0com without finding the root cause of the problem.

Over the past two days I've been attempting to create an -mno-cygwin
executable that can reproduce the behavior I'm seeing under Cygwin.
Thus far I haven't successfully reproduced this behavior outside of a
Cygwin environment despite copying most of the code for how Cygwin
performs select() and read().

Hopefully in the future I'll be able to provide more helpful information.

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

- Raw text -


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