PATCH: (sort of) RE: Possible bug with select and master side of pty

Andrej Borsenkow Andrej.Borsenkow@mow.siemens.ru
Wed Nov 8 10:59:00 GMT 2000


>
> It may be a real problem and I appreciate your attempts to track it
> down but since this seems to be working fine for the vast majority of
> things which use the pty, I don't think I'll be fixing it any time soon.
>
> If someone else would like to take a stab at this (hah?) that would be
> swell.
>

Attached is the half-hearted patch against 1.1.5-4 (relative to
winsup/cygwin). The problem happens when someone reads from master side of pty
using 1 byte buffer and onlcr is enabled. In this case read gets CR and
appears to hang after that before it gets NL. It looks, like it "hangs" at the
end of line. The same problem seems to be with select after CR was read - it
thinks, no input is available.

Forgive me my horrible c++; I still do not quite understand all these
inheritance isuues. But the patch appears to work.

-andrej
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygwin-select.diff
Type: text/x-diff
Size: 1053 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20001108/2d29db23/attachment.bin>


More information about the Cygwin mailing list