[ntp:hackers] nonblocking DNS code nearly complete

Dave Hart davehart at gmail.com
Tue Jan 12 19:50:39 UTC 2010

On Mon, Jan 11, 2010 at 23:43 UTC, Dave Hart <davehart at gmail.com> wrote:
> Hal Murray's testing uncovered a bug [...]

... again.  Looking at retry behavior on a laptop booted with no
network access, Hal noticed a failure which was caused by reloading
/etc/resolv.conf (that is, calling res_init()) in the daemon parent
process instead of the worker child which is doing DNS queries.  I
moved the res_init() call to the child and merged with 4.2.7p8, with
tarballs available in both my ntp.org homedirs with MD5 hash:

96a1f18d7b4d6a90f1260f121ab1942b  ntp-4.2.7p8-new-intres.tar.gz

Also available from:


I am once again indebted to Hal for helping find bugs in this code and
sparing the wider audience the pain.

Dave Hart

More information about the hackers mailing list