summaryrefslogtreecommitdiffstats
path: root/runtime/stream.h
Commit message (Collapse)AuthorAgeFilesLines
* fixed regression introduced with previous commitRainer Gerhards2010-03-101-1/+0
| | | | | | disk queue mode did no longer work correctly. A side-effect of this commit here is slightly cleaned-up (and more elegant) code for circular files.
* bugfix: rsyslog hangs when writing to a named pipe which nobody was reading.Rainer Gerhards2010-01-151-1/+2
| | | | Thanks to Michael Biebl for reporting this bug.
* bugfix: potential segfault in output file writer (omfile)Rainer Gerhards2009-08-181-2/+2
| | | | | | | | | | | | In async write mode, we use modular arithmetic to index the output buffer array. However, the counter variables accidently were signed, thus resulting in negative indizes after integer overflow. That in turn could lead to segfaults, but was depending on the memory layout of the instance in question (which in turn depended on a number of variables, like compile settings but also configuration). The counters are now unsigned (as they always should have been) and so the dangling mis-indexing does no longer happen. This bug potentially affected all installations, even if only some may actually have seen a segfault.
* added capability to write incomplete buffers after an inactivity timeoutRainer Gerhards2009-07-071-0/+1
| | | | | | for the stream class and thus finally activating omfile's timeout capability in a useful way without polling and too-high performance overhead.
* fixed a bug introduced today that lead to an abort in queue disk modeRainer Gerhards2009-07-071-0/+1
|
* first shot at asynchronous stream writer with timeout capabilityRainer Gerhards2009-07-061-1/+16
| | | | | ... seems to work on quick testing, but needs a far more testing and improvement. Good milestone commit.
* prevented unneccessary apc callsRainer Gerhards2009-06-231-2/+3
|
* omfile buffers are now synchronized after inactivityRainer Gerhards2009-06-151-2/+8
| | | | | | This is the first shot at this functionality. Currently, we run off a fixed counter in the rsyslogd mainloop, which needs to be restructured. But this code works, so it is a good time for a commit.
* re-enabled pipe, tty and console in omfileRainer Gerhards2009-06-121-2/+3
| | | | | | | ... by moving code to stream.c. Thanks to the new design, new cases are not really needed, resulting in cleaner code. I also did a cleanup of header file usage as a side-activity.
* re-enabled outchannel functionalityRainer Gerhards2009-06-121-1/+6
|
* improved error handling and added fsync() supportRainer Gerhards2009-06-081-1/+4
| | | | | | ... restoring missing functionality after the restructuring of imfile. As a side-effect, this also lays the foundation for even more reliable queue engine operations (but this is not yet done).
* cleanup in preparation of next stepsRainer Gerhards2009-06-051-1/+23
| | | | | now cleand up omfile and straighted out some things. The only commented-out code left is code that must be moved/merged to the stream class, my next target.
* added $OMFileIOBufferSize config directive and plumbingRainer Gerhards2009-06-041-2/+1
|
* modified stream class and omfile to work with itRainer Gerhards2009-06-041-2/+9
| | | | now some basic operations are carried out via the stream class.
* cleaned up stream class ...Rainer Gerhards2009-06-041-28/+28
| | | | | | ... and also made it callable via an rsyslog interface rather then relying on the OS loader (important if we go for using it inside loadbale modules, which we soon possible will)
* moved runtime files into their own directoryRainer Gerhards2008-04-161-0/+131