syslog-ng--mainline: support optional() for file destinations, optional destinations are only reopened after time_reopen() time has elapsed
Link: <http://intra.balabit/cgi-bin/viewarch.cgi/devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-63> Revision: syslog-ng--mainline--2.0--patch-63 Archive: devel@balabit.hu--other-1 Creator: Balazs Scheidler <bazsi@balabit.hu> Date: Mon Jun 12 11:21:24 CEST 2006 Standard-date: 2006-06-12 09:21:24 GMT Modified-files: ChangeLog src/affile.c src/cfg-grammar.y New-patches: devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-63 Summary: support optional() for file destinations, optional destinations are only reopened after time_reopen() time has elapsed Keywords: * src/affile.c (AFFileDestWriter): added time_reopen and last_open_stamp members, (affile_dw_init): store the time_reopen value from cfg, save the current time in last_open_stamp, don't fail the initialization if optional is enabled, (affile_dw_queue): reopen the destination if time_reopen() time has elapsed, drop the message if we are without a destination, * src/cfg-grammar.y (dest_affile_options): added KW_OPTIONAL parsing Diff stats: ChangeLog | 24 ++++++++++++++++++++++++ src/affile.c | 19 +++++++++++++++++-- src/cfg-grammar.y | 1 + 3 files changed, 42 insertions(+), 2 deletions(-)
participants (1)
-
bazsi@balabit.hu