[Bug 7406] New: syslogd: fix re-opening log files after deleting or moving them
bugzilla at busybox.net
bugzilla at busybox.net
Wed Sep 10 14:32:41 UTC 2014
https://bugs.busybox.net/show_bug.cgi?id=7406
Summary: syslogd: fix re-opening log files after deleting or
moving them
Product: Busybox
Version: 1.22.x
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at busybox.net
ReportedBy: develop at kristov.de
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
Created attachment 5636
--> https://bugs.busybox.net/attachment.cgi?id=5636
fix re-opening log files after deleting or moving them
With the patch attached, syslogd correctly re-opens log files. The current code
uses one global last-logged timestamp for all log targets. If a message is to
be logged to multiple log files, the global last-logged timestamp is compared
to the current system time. If there is a difference of at least one second,
the log file is re-opened and the timestamp is updated. However, because of the
timestamp update, all subsequent log files are _not_ re-opened even if they
need to.
The patch attached uses a per-log-target timestamp to overcome this bug.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list