[Syslog-ng-commit] syslog-ng--mainline: added support for
logrotation in file sources
Balazs Scheidler
bazsi at balabit.hu
Fri Apr 6 11:08:55 CEST 2007
-e Link: <http://intra.balabit/cgi-bin/viewarch.cgi/devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-148>
Revision: syslog-ng--mainline--2.0--patch-148
Archive: devel at balabit.hu--other-1
Creator: Balazs Scheidler <bazsi at balabit.hu>
Date: Fri Apr 6 11:08:49 CEST 2007
Standard-date: 2007-04-06 09:08:49 GMT
Modified-files: ChangeLog src/affile.c src/afsocket.c
src/logpipe.h src/logreader.c src/logreader.h
src/messages.h
New-patches: devel at balabit.hu--other-1/syslog-ng--mainline--2.0--patch-148
Summary: added support for logrotation in file sources
Keywords:
2007-04-06 Balazs Scheidler <bazsi at balabit.hu>
* src/affile.c (affile_sd_open_file): new function, contains the
file open code for the source driver,
(affile_sd_notify): new function, registered as the notification
handler for an affile source, for NC_FILE_MOVED notifications
construct a new the log reader and drop the old one,
(affile_sd_init): use affile_sd_open_file,
(affile_sd_new): register notification handler, tell our LogReader
the filename that we are following
Diff stats:
ChangeLog | 24 +++++++++++++++++++
src/affile.c | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++------
src/afsocket.c | 4 ---
src/logpipe.h | 1
src/logreader.c | 54 ++++++++++++++++++++++++++++++++++++-------
src/logreader.h | 1
src/messages.h | 2 -
7 files changed, 136 insertions(+), 20 deletions(-)
More information about the Syslog-ng-commit
mailing list