This is the mail archive of the cygwin-patches@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: tty-slave read() patch


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]