Hi!
Thursday, 26 April, 2001 Christopher Faylor [EMAIL PROTECTED] 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 <[EMAIL PROTECTED]>
>>
>> * 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:[EMAIL PROTECTED] ICQ 5165414 FidoNet 2:5020/496.19