On Fri, May 24, 2024 at 12:11 AM Rob Landley wrote:
> On 5/20/24 09:42, Yi-Yo Chiang via Toybox wrote:
> > Is there any particular reason to use TCSAFLUSH here?
>
> Partly because it's what strace said busybox and minicom were doing, and
> partly
> because I've had serial hardware that produced
On 5/20/24 09:42, Yi-Yo Chiang via Toybox wrote:
> Is there any particular reason to use TCSAFLUSH here?
Partly because it's what strace said busybox and minicom were doing, and partly
because I've had serial hardware that produced initial static on more than one
occasion.
In this case, it looks
On Mon, May 20, 2024 at 10:43 AM Yi-Yo Chiang wrote:
>
> Found this out today when comparing captured logs. Every time I connect to a
> pty the first few hundreds of bytes seem to always be missing.
> I then traced to this line
>
Found this out today when comparing captured logs. Every time I connect to
a pty the first few hundreds of bytes seem to always be missing.
I then traced to this line
https://github.com/landley/toybox/blob/master/toys/net/microcom.c#L103 and
it's the tcsetattr(TCSAFLUSH) that is discarding