gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] tests hanging on netsbd-6 i386


From: Eric S. Raymond
Subject: Re: [gpsd-dev] tests hanging on netsbd-6 i386
Date: Fri, 30 Jan 2015 16:46:04 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

Greg Troxel <address@hidden>:
> I find the hashes (without the spurious "g" that git describe puts in):
> 
> commit a83ecfd712d37442445523ef0d14c04477ac9289
> Author: Eric S. Raymond <address@hidden>
> Date:   Thu Jan 29 13:28:24 2015 -0500
> 
>     Create a logic path for each driver to set tty controls.
>     commit 646f855d4cdd6d7c27333d511b1d49eaea277af4
> 
> Author: Eric S. Raymond <address@hidden>
> Date:   Thu Jan 29 14:33:05 2015 -0500
> 
>     Rare I/O with timeout seems to work.  This replaces the
>     adaptive-delay code.
>     
> > What is new is that each driver now declares a minimum packet length.  When
> > switching to a driver, the line discipline changes to this:
> >
> >     session->ttyset.c_cc[VMIN] = minlength;
> >     session->ttyset.c_cc[VTIME] = 1;
> >
> > which means "return when you either have minlength characters waiting for
> > read or at least one character and 0.1sec has elapsed since the last
> > character read."
> 
> I will have a look at this.  I see that this is specified by POSIX:
> 
> http://pubs.opengroup.org/onlinepubs/007908799/xbd/termios.html

Yup.  The failure commit is the one where that's actually implemented.
My guess is that BSD doesn't implement VTIME right.  (You must be getting
VMIN right or the old code wouldn't work).

No big deal if that's so, we'll just condition out that code for BSD
and all you'll lose is the anti-buzz protection.
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]