syslog-ng--mainline: fixed off-by-one in flush_lines() calculation
Link: <http://intra.balabit/cgi-bin/viewarch.cgi/devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-41> Revision: syslog-ng--mainline--2.0--patch-41 Archive: devel@balabit.hu--other-1 Creator: Balazs Scheidler <bazsi@balabit.hu> Date: Thu Apr 20 14:07:17 CEST 2006 Standard-date: 2006-04-20 12:07:17 GMT Modified-files: ChangeLog src/logwriter.c New-patches: devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-41 Summary: fixed off-by-one in flush_lines() calculation Keywords: * src/logwriter.c (log_writer_fd_prepare): flush_lines(1) required two lines to be flushed, modified the condition so that: flush_lines(0) that output buffering is off, flush_lines(1) is basically equivalent, every single individual line is flushed, flush_lines(2) flushes the output buffer if two lines are already available Diff stats: ChangeLog | 19 +++++++++++++++++++ src/logwriter.c | 7 +++++-- 2 files changed, 24 insertions(+), 2 deletions(-)
participants (1)
-
bazsi@balabit.hu