delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/01/21:01:59

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Thu, 1 Mar 2001 21:00:21 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: select and DOS box click
Message-ID: <20010301210021.A6413@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
References: <8AC36D3167EED41184C800508BD95405120E82 AT apollo DOT adtech-inc DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <8AC36D3167EED41184C800508BD95405120E82@apollo.adtech-inc.com>; from Jimen.Ching@SpirentCom.COM on Thu, Mar 01, 2001 at 03:45:55PM -1000

On Thu, Mar 01, 2001 at 03:45:55PM -1000, Ching, Jimen wrote:
>Hi all,
>
>I was wondering if someone could tell me if the following behavior is
>what is expected.
>
>I run the program below with cygwin 1.1.8.  Two strange behavior seems
>to occur.
>
>1.  If I click on the DOS box where this program is running, the select
>call returns 1.  The output will show this.  But the call to read will
>block.  Probably because there is no input from the keyboard.  Is this
>the correct behavior?  How do I check only for keyboard input?
>
>Note: clicking on the title bar does not cause this behavior.  It only
>happens if you click inside the window.

That's a bug brought about by Cygwin's new ability to recognize mouse
clicks.  I've checked in a fix.  It will show up in a snapshot eventually.

>2.  When I run the program from the DOS prompt and hit Ctrl-Z, the program
>freezes.  But if I run the program in bash and hit Ctrl-Z, the program
>is suspended.  Is this normal?

Hmm.  I guess that's a bug, too.  I will check in a fix that causes CTRL-Z
to be ignored if the cygwin process does not have a cygwin parent.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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