+---
+* [Bug 3824] Spurious "ntpd: daemon failed to notify parent!" logged at
+ event_sync. Reported by Edward McGuire. <hart@ntp.org>
+
---
(4.2.8p16) 2023/05/31 Released by Harlan Stenn <stenn@ntp.org>
*/
#ifdef HAVE_WORKING_FORK
if (daemon_pipe[1] != -1) {
- if (2 != write(daemon_pipe[1], "S\n", 2))
- msyslog(LOG_ERR, "ntpd: daemon failed to notify parent!");
+ if (2 != write(daemon_pipe[1], "S\n", 2)) {
+ msyslog(LOG_ERR, "daemon failed to notify parent ntpd (--wait-sync)");
+ }
close(daemon_pipe[1]);
daemon_pipe[1] = -1;
DPRINTF(1, ("notified parent --wait-sync is done\n"));
#if defined(SYS_WINNT)
ntservice_isup();
#elif defined(HAVE_WORKING_FORK)
- if ((daemon_pipe[1] != -1) && (2 != write(daemon_pipe[1], "R\n", 2))) {
- msyslog(LOG_ERR, "ntpd: daemon failed to notify parent!");
+ if (daemon_pipe[1] != -1) {
+ if (2 != write(daemon_pipe[1], "R\n", 2)) {
+ msyslog(LOG_ERR, "daemon failed to notify parent ntpd after init");
+ }
close(daemon_pipe[1]);
daemon_pipe[1] = -1;
}