[prev in list] [next in list] [prev in thread] [next in thread] 

List:       syslog-ng
Subject:    Re: [syslog-ng] [PATCH] logreader: When following a file, treat non-regular files specially
From:       Balazs Scheidler <bazsi () balabit ! hu>
Date:       2012-10-27 12:15:48
Message-ID: 1351340148.32257.1.camel () bzorp
[Download RAW message or body]

Hi,

I've merged this via 3.3, thanks.

On Fri, 2012-10-05 at 12:50 +0200, Gergely Nagy wrote:
> When following a file with follow-freq(), and it is not a regular
> file, but something for which stat(2) always returns 0 size (such as
> the /dev/klog character device on FreeBSD),
> log_reader_io_follow_file() never went into the process input branch,
> because the current position (0) was always at EOF (also 0).
> 
> To break out of this unfortunate situation, if the file to read from
> is not a regular file, go into the process input loop anyway: at
> worst, it will do an expensive noop.
> 
> Signed-off-by: Gergely Nagy <algernon@balabit.hu>

-- 
Bazsi


______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic