This is the mail archive of the cygwin-patches@cygwin.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: Cut and paste problem with cygwin 1.3.1


Hi!

Thursday, 26 April, 2001 Christopher Faylor cgf@redhat.com wrote:

CF> If you've reproduced it and this patch fixes it, then please check
CF> this in.

CF> I wonder why I can't duplicate it...

it's race condition, so i'm not surprised. . if reader is fast enough
to not allow writer to fill the pipe, everything's ok. but imagine
that reader is very slow and writer is very fast. Writer fills the pipe
up, and blocks in WriteFile (), owning input_mutex, hence the freeze.

>>i've reproduced it. it looks like bug in my tty_slave changes. hope
>>this patch helps.
>>
>>2001-04-26  Egor Duda  <deo@logos-m.ru>
>>
>>        * tty.cc (tty::make_pipes): Set to_slave pipe mode to non-blocking.
>>        * fhandler_tty.cc (fhandler_pty_master::accept_input): If pipe buffer
>>        is full, give slave a chance to read data.

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19



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