Hi!
if application performs write to tty with ONLCR flag turned off and
then immediately calls tcsetattr to turn it on,
fhandler_pty_master::process_slave_output gets confused. it
calculates rlen according to old tty settings and signals output_done
event. then it process the buffer according to new tty settings, and
stumbles over internal error message. Patch attached (well, this
time i triple-checked that it does contain changelog entry :)
Egor. mailto:[EMAIL PROTECTED] ICQ 5165414 FidoNet 2:5020/496.19
tty-write-tcsetattr-race.ChangeLog
tty-write-tcsetattr-race.diff