.
D 2026-10-14T18:48:19.312
J icomment On\sWindows\sa\sserial\serror\ssuch\sas\sBREAK\sis\sreported\sby\sone\s<nowiki>[read]</nowiki>\sas\san\sI/O\serror,\swith\sthe\sdetails\sin\s<code>fconfigure\s$chan\s-lasterror</code>,\sand\sthen\scleared;\sthe\sdata\sin\sthe\squeue\sis\snot\sdiscarded.\sSo\syou\scan\scatch\sthe\serror\sand\sread\sagain:\n\n<verbatim>\nif\s{[catch\s{read\s$rh}\sdata]\s&&\s"BREAK"\sin\s[fconfigure\s$rh\s-lasterror]}\s{\n\s\s\s\sset\sdata\s[read\s$rh]\n}\n</verbatim>
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
J resolution Invalid
J status Closed
K ea53aa804d4ef48bddf9e20869231d7017331b74
U serhiy.storchaka
Z 1935b4b3a5dfd01b5c549451ff1f3dd3