From: Harlan Stenn Date: Sun, 16 Dec 2007 04:29:17 +0000 (-0500) Subject: [Bug 634] Re-instantiate syslog() and logfiles after the daemon fork X-Git-Tag: NTP_4_2_5P107~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bd8284320db20c5f45f4df5a9c72e653b0cff55;p=thirdparty%2Fntp.git [Bug 634] Re-instantiate syslog() and logfiles after the daemon fork bk: 4764a99dYkHJdeWyDdr_GsMk_8AQmg --- diff --git a/ChangeLog b/ChangeLog index 7e10c1484..913ca2a6b 100644 --- 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. diff --git a/ntpd/ntpd.c b/ntpd/ntpd.c index 3ec7b06fc..fd450b3b3 100644 --- a/ntpd/ntpd.c +++ b/ntpd/ntpd.c @@ -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;