syslogd: make "reopen log file every second" logic work for multiple logs
authorJoshua Judson Rosen <jrosen@harvestai.com>
Thu, 3 Jul 2014 12:51:47 +0000 (14:51 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 3 Jul 2014 12:51:47 +0000 (14:51 +0200)
commitae57fcad5d36dc2ba00179ef3e44154c10223862
tree03eea81e4c4c8e3944327ae46fe15c4939846fd4
parente46047aa87c9ec0b8e27d1d4ecfcb3e9798ddb8d
syslogd: make "reopen log file every second" logic work for multiple logs

Move last_log_time from a single global to *each logFile_t*
so that we can actually apply the logic to every log-file
in multi-file configurations, rather than working only
for the first file written in each 1-second interval
and then leaving the others connected to possibly wrong files.

Signed-off-by: Joshua Judson Rosen <jrosen@harvestai.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
sysklogd/syslogd.c