[LinuxPPS] pps stops when ntpd starts?

Udo van den Heuvel udovdh at xs4all.nl
Wed Jun 10 19:41:56 CEST 2009


William S. Brasher wrote:
> On Wed, 10 Jun 2009, Udo van den Heuvel wrote:
> 
>> William S. Brasher wrote:
>>> The following patch to ldattach will "fix" the problem and with ppstest
>>> hanging and ntpd never seeing the pps signal after ntpd is started:
>> These ioctl flags are the ones missing in ldattach versus ppsldisc?
> 
> I used stty to get the flags after ppsldisc and then after ntpd was 
> started.  Then I stopped ppsldisc and ntpd, started ldattach, got the 
> flags, and then started ntpd, and got the flags.  After ntpd was run the 
> flags were the same as set by ppsldisc.  Ldattach, however, does not set 
> ignbrk and icrnl and icanon were marked -crnl and -icanon.
> 
> So, I just started setting flags in ldattach to get it to match what ntpd 
> seemed to want, and after setting IGNBRK and ICRNL in c_iflag things 
> started to work. Note that -icanon is also gone after ntpd is running, but 
> letting ntpd set that flag didn't kill the pps signal.
(cut)

Ah, thanks.
If we can make the extra flags conditional for N_PPS only I could send 
the ldattach maintainer an updated patch....

Kind regards,
Udo



More information about the LinuxPPS mailing list