This is the mail archive of the
mailing list for the Cygwin project.
Re: tty-slave read() patch
- To: cygwin-patches at cygwin dot com
- Subject: Re: tty-slave read() patch
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Wed, 28 Feb 2001 14:09:56 -0500
- References: <email@example.com>
- Reply-To: cygwin-patches at cygwin dot com
On Wed, Feb 28, 2001 at 07:23:51PM +0300, Egor Duda wrote:
> i've changed the way fhandler_tty_slave::read communicates with
>master. it addresses a couple of problems. currently, when in
>non-canonical mode and vmin=1, read() never reads more then 1 byte
>from the pipe, even if more input is available. the result is
>following: when user presses F1 key in ssh window, this keypress is
>actually sent to server not in one packet but in 4. This is very
>noticeable on slow links. it also eliminates pipe polling.
Can you go into more detail on how you accomplished this? It looks like
you have used a mutex for communicating between the processes. Won't
this cause problems when communicating with non-cygwin applications?