This is the mail archive of the cygwin-patches@sources.redhat.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]

race in tty handling code


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:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19

tty-write-tcsetattr-race.ChangeLog

tty-write-tcsetattr-race.diff


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