[ntp:bugs] [Bug 816] ntpd continues to give time to clients even if it receives bad time from external source
dhinakar via the NTP Bugzilla
bugzilla at ntp.isc.org
Wed Apr 25 22:23:10 PDT 2007
http://bugs.ntp.isc.org/816
----------------------------------------------------------------------------
Additional Comments From k_dhinakar at rediffmail.com (dhinakar)
Submitted on 2007-04-26 05:23
Thanks Brian Utterback,
Your reply cleared all my doubts. I have one more issue, "select() returns
-1" errno = 4 -> Interrupted system call.
I have stated earlier that, my refclock driver reads current time from local
machine itself. I accomplish this with help of sample device driver, which gives
current system time when read call is made over driver's fd, from refclock_xxx
instead on actual device connected through serial.
As ntpd performs select on all configured servers(in my case only refclock_xxx)
to know who has data, the sample driver has to support select call. I do this
with help of poll method in driver, which wakes up the ntpd(put into sleep by
select) every one second, to say ntpd that driver has data.
And here is the problem, whenever ntpd sees this wake up call, it returns with
-1, which means that the system call is interrupted by some signal.
Surprisingly ntpd gives no error without this wake up call to select.
--
dhinakar <k_dhinakar at rediffmail.com>
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the bugs
mailing list