+* [Bug 1067] Multicast DNS service registration must come after the fork on Solaris.
* [Bug 1066] Error messages should log as errors
(4.2.5p131) 2008/09/14 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 1065] Re-enable support for the timingstats file.
ntp_srandom((int)(now.l_i * now.l_uf));
-#ifdef HAVE_DNSREGISTRATION
- /* HMS: does this have to happen this early? */
- msyslog(LOG_INFO, "Attemping to register mDNS");
- if ( DNSServiceRegister (&mdns, 0, 0, NULL, "_ntp._udp", NULL, NULL, htons(NTP_PORT), 0, NULL, NULL, NULL) != kDNSServiceErr_NoError ) {
- msyslog(LOG_ERR, "Unable to register mDNS");
- }
-#endif
-
#if !defined(VMS)
# ifndef NODETACH
/*
loop_config(LOOP_DRIFTCOMP, old_drift);
initializing = 0;
+#ifdef HAVE_DNSREGISTRATION
+ /* HMS: does this have to happen this early? */
+ msyslog(LOG_INFO, "Attemping to register mDNS");
+ if ( DNSServiceRegister (&mdns, 0, 0, NULL, "_ntp._udp", NULL, NULL, htons(NTP_PORT), 0, NULL, NULL, NULL) != kDNSServiceErr_NoError ) {
+ msyslog(LOG_ERR, "Unable to register mDNS");
+ }
+#endif
+
#ifdef HAVE_DROPROOT
if( droproot ) {
/* Drop super-user privileges and chroot now if the OS supports this */