diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-11-15 10:08:26 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-11-15 10:08:26 +0100 |
commit | 3475caa394c4d50baa34b407b7bdea0c37f2b83c (patch) | |
tree | 307cdc36d14b17403c84ce6a2ecc2feb44fbffde /runtime/stream.h | |
parent | 46dbd8dda97947713d76e814b3053760a106d63f (diff) | |
download | rsyslog-3475caa394c4d50baa34b407b7bdea0c37f2b83c.tar.gz rsyslog-3475caa394c4d50baa34b407b7bdea0c37f2b83c.tar.bz2 rsyslog-3475caa394c4d50baa34b407b7bdea0c37f2b83c.zip |
refactor stream.h; fix some issues with last patch
Most importantly, the last patch for imfile contained a number
of glitches, which are fixed by this commit (a memory leak under
unusual conditions, partial message loss when rsyslog was
terminated in the interim & mixing file data to the wrong files
when multiple monitors were used [due to static variable]). The
commit is actually a re-write of the patch, based on its core
idea.
Also some other minor cleanup was done.
Diffstat (limited to 'runtime/stream.h')
-rw-r--r-- | runtime/stream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/stream.h b/runtime/stream.h index a01929f2..78dbc0d6 100644 --- a/runtime/stream.h +++ b/runtime/stream.h @@ -141,6 +141,7 @@ typedef struct strm_s { off_t iSizeLimit; /* file size limit, 0 = no limit */ uchar *pszSizeLimitCmd; /* command to carry out when size limit is reached */ sbool bIsTTY; /* is this a tty file? */ + cstr_t *prevLineSegment; /* for ReadLine, previous, unwritten part of file */ } strm_t; |