]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 634] Re-instantiate syslog() and logfiles after the daemon fork
authorHarlan Stenn <stenn@ntp.org>
Sun, 16 Dec 2007 04:29:17 +0000 (23:29 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sun, 16 Dec 2007 04:29:17 +0000 (23:29 -0500)
bk: 4764a99dYkHJdeWyDdr_GsMk_8AQmg

ChangeLog
ntpd/ntpd.c

index 7e10c14842a14740cad355843a70c54f01d8bbf4..913ca2a6bac6a75bfef6d62d8dce547f6e03ca9f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* [Bug 634] Re-instantiate syslog() and logfiles after the daemon fork.
 * [Bug 952] Use md5 code with a friendlier license.
 * [Bug 977] Fix mismatching #ifdefs for builds without IPv6.
 * [Bug 830] Fix the checking order of the interface options.
index 3ec7b06fc0791ffd5b266f1deeb4ebbac1616d97..fd450b3b3d0dfc119cb898a3c924b4eca42d78ba 100644 (file)
@@ -643,6 +643,10 @@ ntpdmain(
                        (void) open("/", 0);
                        (void) dup2(0, 1);
                        (void) dup2(0, 2);
+
+                       init_logging(progname, 0);
+                       setup_logfile();
+
 #ifdef SYS_DOMAINOS
                        {
                                uid_$t puid;