From: Dave Hart Date: Mon, 20 Feb 2023 17:03:02 +0000 (-0500) Subject: [Bug 2410] syslog an error message on panic exceeded. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70829bb861f6bb30338070b13070be18e7108b2c;p=thirdparty%2Fntp.git [Bug 2410] syslog an error message on panic exceeded. Update email address. bk: 63f3a7c6-f6HnWpA3YoGdRqfMiN6WA --- diff --git a/ChangeLog b/ChangeLog index e54cb4909..59a5dfe74 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ --- +* [Bug 2410] syslog an error message on panic exceeded. * [Bug 3784] high-load ntpd on Windows deaf after enough ICMP TTL exceeded * [Bug 2525] Turn on automake subdir-objects across the project. * [Bug 3758] Provide a 'device' config statement for refclocks diff --git a/html/copyright.html b/html/copyright.html index 93604b7d0..e28b976aa 100644 --- a/html/copyright.html +++ b/html/copyright.html @@ -87,7 +87,7 @@
  • Torsten Duwe <duwe@immd4.informatik.uni-erlangen.de> Linux port
  • Dennis Ferguson <dennis@mrbill.canet.ca> foundation code for NTP Version 2 as specified in RFC-1119
  • John Hay <jhay@icomtek.csir.co.za> IPv6 support and testing
  • -
  • Dave Hart <davehart@davehart.com> General maintenance, Windows port interpolation rewrite
  • +
  • Dave Hart <davehart@gmail.com> General maintenance, IPv6 cleanup, Windows PPSAPI
  • Claas Hilbrecht <neoclock4x@linum.com> NeoClock4X clock driver
  • Glenn Hollinger <glenn@herald.usask.ca> GOES clock driver
  • Mike Iglesias <iglesias@uci.edu> DEC Alpha port
  • diff --git a/ntpd/ntp_proto.c b/ntpd/ntp_proto.c index 898ff73ee..182bfc612 100644 --- a/ntpd/ntp_proto.c +++ b/ntpd/ntp_proto.c @@ -2886,6 +2886,7 @@ clock_update( * Clock exceeds panic threshold. Life as we know it ends. */ case -1: + msyslog(LOG_ERR, "Clock offset exceeds panic threshold."); #ifdef HAVE_LIBSCF_H /* * For Solaris enter the maintenance mode. @@ -2899,10 +2900,13 @@ clock_update( /* * Sleep until SMF kills us. */ + msyslog(LOG_ERR, "%s placed into maintenance. " + "Set system clock by hand before clearing."); for (;;) pause(); } #endif /* HAVE_LIBSCF_H */ + msyslog(LOG_ERR, "Set system clock by hand."); exit (-1); /* not reached */