tty-slave read() patch

Christopher Faylor cgf@redhat.com
Wed Feb 28 11:10:00 GMT 2001


On Wed, Feb 28, 2001 at 07:23:51PM +0300, Egor Duda wrote:
>Hi!
>
>  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?

cgf



More information about the Cygwin-patches mailing list