Bug 11977 - klogd breaks after syslogd restart/log rotating
klogd breaks after syslogd restart/log rotating
Status: CLOSED ERRATA
Product: Red Hat Linux
Classification: Retired
Component: sysklogd (Show other bugs)
6.1
All Linux
high Severity medium
: ---
: ---
Assigned To: Bill Nottingham
: Security
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-06-08 06:59 EDT by Frank Van Maarseveen
Modified: 2014-03-16 22:14 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-06-09 03:23:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
bugfix (390 bytes, patch)
2000-06-09 03:23 EDT, Frank Van Maarseveen
no flags Details | Diff

  None (edit)
Description Frank Van Maarseveen 2000-06-08 06:59:26 EDT
klogd no longer logs kernel messages such as those from a packet filtering
firewall once syslogd has received a SIGHUP (log rotating does this) or
is restarted in another way.

Fix:
--- syslog.c.orig       Thu Jun  8 10:32:07 2000
+++ syslog.c    Thu Jun  8 11:05:39 2000
@@ -164,6 +164,11 @@
        }

        /* output the message to the local logger */
+       if (write(LogFile, tbuf, cnt + 1) == -1) {
+               /* syslogd restarted */
+               closelog();
+               openlog(LogTag, LogStat | LOG_NDELAY, 0);
+       }
        if (write(LogFile, tbuf, cnt + 1) >= 0 || !(LogStat&LOG_CONS))
                return;
Comment 1 Frank Van Maarseveen 2000-06-09 03:23:48 EDT
Created attachment 378 [details]
bugfix
Comment 2 Bill Nottingham 2000-06-11 15:24:43 EDT
This was fixed in the errata sysklogd package.

Note You need to log in before you can comment on or make changes to this bug.