#
20529c73 |
| 31-Dec-2007 |
henning <henning@openbsd.org> |
we must reset the poll timeout to INFTIM when receiving the IMSG_SETTIME because otherwise the poll timeout will stay at SETTIME_TIMEOUT (15s) forever unless we time out waiting for the first reply w
we must reset the poll timeout to INFTIM when receiving the IMSG_SETTIME because otherwise the poll timeout will stay at SETTIME_TIMEOUT (15s) forever unless we time out waiting for the first reply with -s spotted by Aaron Riekenberg <aaron.riekenberg@gmail.com>
show more ...
|
#
a5e2cc1c |
| 23-Dec-2007 |
stevesk <stevesk@openbsd.org> |
log a warning one time when we can't open or write the drift file; also add "(no drift file)" to the adjfreq log message on failure; ok henning@
|
#
76387fbe |
| 22-Dec-2007 |
stevesk <stevesk@openbsd.org> |
just call getpwnam(NTPD_USER) once; ok henning@
|
#
4cdf6a7b |
| 04-Dec-2007 |
fgsch <fgsch@openbsd.org> |
revert SIGQUIT catching; requested by deraadt
|
#
a6f3c67d |
| 04-Dec-2007 |
fgsch <fgsch@openbsd.org> |
catch SIGQUIT too. ckuethe@ and henning@ ok.
|
#
14e938f1 |
| 22-Nov-2007 |
otto <otto@openbsd.org> |
if the drift file is missing, reset adjfreq to zero; iirc diff from Glaser from a long time ago. ok ckuethe@
|
#
2554dee9 |
| 13-Sep-2007 |
jmc <jmc@openbsd.org> |
add -n to usage();
|
#
8b4c855f |
| 13-Sep-2007 |
pyr <pyr@openbsd.org> |
Provide the -n switch like in the other imsg daemons for testing the configuration file. "yes please, ok" henning@
|
#
f5118933 |
| 22-Aug-2007 |
ckuethe <ckuethe@openbsd.org> |
Allow ntpd to log sensor offsets and adjtime calls to syslog at LOG_DEBUG priority. ok gwk, mbalmer, weingart "explicit non-ok from" henning
|
#
96f46bd6 |
| 15-Jan-2007 |
otto <otto@openbsd.org> |
Although Unix compilers accept more than one definition of a global symbol, follow the guidelines from K&R: only one definition of a global symbol (and possibly more declarations). Rename some vars
Although Unix compilers accept more than one definition of a global symbol, follow the guidelines from K&R: only one definition of a global symbol (and possibly more declarations). Rename some vars here and there to avoid shadowing. ok henning@
show more ...
|
#
e58b8dd9 |
| 30-Jun-2006 |
deraadt <deraadt@openbsd.org> |
spaces
|
#
460e0564 |
| 30-Jun-2006 |
otto <otto@openbsd.org> |
don't write anything to log until we are daemonized. spotted by david@; ok henning@
|
#
e10f1ca1 |
| 26-Jun-2006 |
otto <otto@openbsd.org> |
Reset adjtime() on startup; having an adjtime() active while starting up causes overcompensation and confusing debug log entries; noticed by dtucker@
|
#
edb831d1 |
| 22-Jun-2006 |
otto <otto@openbsd.org> |
Save the computed clock drift and use it on startup. ok deraadt@ henning@
|
#
2fcd4b6e |
| 21-Jun-2006 |
otto <otto@openbsd.org> |
avoid a race by installing SIGCHLD handler before fork() is called. ok henning@ ckuethe@
|
#
164ca3f4 |
| 17-Jun-2006 |
otto <otto@openbsd.org> |
Import frequency conrrection code from dragonfly, whith some changes: only do frequency compensation if the clock is synced, and a slightly diffent way of computing the linear regression. You'll need
Import frequency conrrection code from dragonfly, whith some changes: only do frequency compensation if the clock is synced, and a slightly diffent way of computing the linear regression. You'll need a recent kernel and libc to use this. Testing by naddy@ and ckuethe@ and others, thanks! ok henning@
show more ...
|
#
4e6294c2 |
| 07-Jun-2006 |
otto <otto@openbsd.org> |
Compensate old offsets with the amount of adjustment done, avoiding overcompensating. From DragonFly, uses recent adjtime(2) changes, so you'll need a recent kernel. ok henning@
|
#
56e2fdf5 |
| 21-Feb-2006 |
stevesk <stevesk@openbsd.org> |
handle -1 return from host_dns(); ok henning@
|
#
710b45d8 |
| 06-Sep-2005 |
wvdputte <wvdputte@openbsd.org> |
when running ntpd with "-s" as it's argument from /etc/rc.conf, make sure the output goes to syslog and not console by moving around log_init
OK henning@, markus@ and mblamer@
|
#
61bbc769 |
| 11-Jul-2005 |
dtucker <dtucker@openbsd.org> |
More descriptive error if a signal causes the child to exit; ok henning@
|
#
9fb4a489 |
| 19-Jun-2005 |
henning <henning@openbsd.org> |
use a #define for the time to wait on -s and clarify a log msg
|
#
6be00f15 |
| 19-Jun-2005 |
henning <henning@openbsd.org> |
use a little state engine to keep track of delayed dns lookups and such, eases things tested by Jason Ackley <jason@ackley.net> Matthias Kilian <kili@outback.escape.de> Stephen Marley <stephen@marley
use a little state engine to keep track of delayed dns lookups and such, eases things tested by Jason Ackley <jason@ackley.net> Matthias Kilian <kili@outback.escape.de> Stephen Marley <stephen@marley.org.uk> sturm@ theo ok
show more ...
|
#
7de07ab1 |
| 26-May-2005 |
dtucker <dtucker@openbsd.org> |
Ensure previous adjust has completed before clearing alarm flag; ok henning@
|
#
ada4eec7 |
| 18-Apr-2005 |
henning <henning@openbsd.org> |
extra paranoia, from a discussion with joerg
|
#
bd8ffd8f |
| 31-Mar-2005 |
henning <henning@openbsd.org> |
zap includes, grunk
|