syslogd: Fix startup issue with remote sinks
Only reset f_fime when the filed is in normal operation, not suspended, otherwise the INET_SUSPEND_TIME handling is broken. Signed-off-by: Johan Askerin <johan.askerin@gmail.com> Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
773e69ea2e
commit
5bfe15f767
@ -1622,8 +1622,10 @@ static void fprintlog_first(struct filed *f, struct buf_msg *buffer)
|
||||
/* Messages generated by syslogd itself may not have a timestamp */
|
||||
check_timestamp(buffer);
|
||||
|
||||
if (f->f_type != F_FORW_SUSP) {
|
||||
f->f_time = timer_now();
|
||||
f->f_prevcount = 0;
|
||||
}
|
||||
|
||||
if (f->f_flags & RFC5424)
|
||||
iovcnt = fmt5424(buffer, RFC5424_DATEFMT, iov, NELEMS(iov));
|
||||
|
Loading…
Reference in New Issue
Block a user