Cut and paste problem with cygwin 1.3.1

egor duda deo@logos-m.ru
Fri Apr 27 04:11:00 GMT 2001


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




More information about the Cygwin-patches mailing list