This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: select and DOS box click
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