]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ntpd.c, ChangeLog:
authorBrian Utterback <utterback@ntp.org>
Sun, 14 Sep 2008 22:11:27 +0000 (18:11 -0400)
committerBrian Utterback <utterback@ntp.org>
Sun, 14 Sep 2008 22:11:27 +0000 (18:11 -0400)
  Multicast DNS service registration must come after the fork on Solaris.

bk: 48cd8c0fyK7vz5wOsWBzHtCTDTbTuw

ChangeLog
ntpd/ntpd.c

index 8bce007bb2fe2a595fed688e8a62ae547a773140..67b163027af43b9cb8d4d11f432390547dbb1f23 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* [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.
index 480eaa57a90b9ca391cae5f723375ee511415006..1d6f19f9726593697f8e69f78a74c74bca43a569 100644 (file)
@@ -581,14 +581,6 @@ ntpdmain(
 
        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
        /*
@@ -863,6 +855,14 @@ ntpdmain(
        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 */