This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Cut and paste problem with cygwin 1.3.1
- To: Christopher Faylor <cygwin-patches at cygwin dot com>
- Subject: Re: Cut and paste problem with cygwin 1.3.1
- From: egor duda <deo at logos-m dot ru>
- Date: Fri, 27 Apr 2001 15:08:50 +0400
- Organization: deo
- References: <3AE76EC4.EF0FFA66@lucent.com> <20010425222146.D3536@redhat.com><3AE79346.6E761199@bbn.com> <20010425232756.A4338@redhat.com><33191091635.20010426165929@logos-m.ru> <20010426142044.B6609@redhat.com>
- Reply-To: egor duda <cygwin-patches at cygwin dot com>
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