aboutsummaryrefslogtreecommitdiff
path: root/ntpd/ntpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ntpd/ntpd.c')
-rw-r--r--ntpd/ntpd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ntpd/ntpd.c b/ntpd/ntpd.c
index f05924de7842..868f7a9c8068 100644
--- a/ntpd/ntpd.c
+++ b/ntpd/ntpd.c
@@ -1450,8 +1450,10 @@ int scmp_sc[] = {
#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;
}