DragonFly bugs List (threaded) for 2009-01
[
Date Prev][
Date Next]
[Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: [issue1243] dntpd(8) blocks during startup
If someone wants to take on this task it would actually be fairly easy
to do, maybe 2 hours of work. And probably quite fun, too. The source
is in /usr/src/usr.sbin/dntpd.
The dntpd state machine includes a DNS-resolution stage. Currently dntpd
blocks because the add_server() tries to resolve the server name prior
to demonization. The add_server() calls must still be made prior to
demonization because we want fatal parsing errors to be reported prior
to going into the background.
However, instead of having add_server() create the initial socket and
do the initial DNS resolution it could instead start the server in the
dns-reresolve state, which is state -1, and not even try to resolve
the server names from inside add_server() itself.
-Matt
[
Date Prev][
Date Next]
[Thread Prev][
Thread Next]
[
Date Index][
Thread Index]