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


On Fri, Apr 27, 2001 at 03:08:50PM +0400, egor duda wrote:
>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.

Makes sense.  My dual processor machine is sometimes a good way to detect
races and sometimes a good way to bypass them...

cgf


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