summaryrefslogtreecommitdiffstats
path: root/syslogd.c
Commit message (Collapse)AuthorAgeFilesLines
* added config file directive $ActionResumeIntervalRainer Gerhards2007-08-081-0/+9
|
* changed function name dprintf() to dbgprintf() as it conflicts with theRainer Gerhards2007-08-081-115/+115
| | | | clib
* all compile-time settings are now shown in rsyslogd -v, not just the activeRainer Gerhards2007-08-081-24/+46
| | | | ones
* optimized select handling, after select polling cycle is now finished whenRainer Gerhards2007-08-081-44/+59
| | | | all active selectors are processed
* moved the "after select polling code (for fds)" to its own functionRainer Gerhards2007-08-081-153/+175
|
* add config directive $MainMsgQueueSize, which now allows to configure theRainer Gerhards2007-08-071-7/+21
| | | | queue size dynamically
* moved code to create/delete message queue to init(), after reading the confRainer Gerhards2007-08-071-10/+17
| | | | | file. This is a prequisite to allow specifying the queue size in the conf file.
* applied patch from Michel Samia to fix compilation when the pthreadsRainer Gerhards2007-08-071-0/+4
| | | | feature is disabled
* moved action object out of syslogd.c to its own fileset (action.c/h)Rainer Gerhards2007-08-061-177/+1
|
* applied a patch from varmojfekoj which solved a potential segfault ofRainer Gerhards2007-08-061-4/+11
| | | | rsyslogd on HUP
* - I found out that we finally have problems with the (somewhat recursive)Rainer Gerhards2007-08-031-16/+74
| | | | | | | | | | | | | | | | | | | | | | | | call to logerror() that many of the modules do. I have not tried it, but I think things will become wild when we compile without pthread support. Threading prevents full recursion, so we have not seen any bad effects so far. However, the problems that I experienced in ommysl (that caused me to re-structure startWorker()) are actually rooted in this issue. I first thought to fix it via a module interace, but I now came to the conclusion that it is not more effort and much cleaner to do an internal error buffering class. This is implemented in errbuf.c/h. - I just noticed that this is not actually an error buf, but the core of an input module for all internal messages. As such, I implement it now as iminternal.c/h. Of course, there is no input module interface yet designed, but that doesn't matter. Worst-case, I need to re-write the im, best case I can use the im (at least partly) to define the interface. - added a few functions to the linkedlist class - error messages during startup are now buffered - so we do no longer need to think about how emergency logging might work. Actually, these are logged to whatever is instatiated in the log file. This enhances the chance that we will be able to drop the error message somewhere it is seen.
* - added CODE_STD_FINALIZERparseSelectorAct to module-generation macrosRainer Gerhards2007-08-031-16/+19
| | | | | | - restructered rsyslogd startup - moved startWorker() to a more appropriate place - updated ommysql.c to fully support suspension/resumption by rule engine
* some cleanupRainer Gerhards2007-08-021-3/+0
|
* implemented $ActionExecOnlyWhenPreviousIsSuspended config directiveRainer Gerhards2007-08-021-10/+21
|
* got a working version of suspension/resumption logic including omfwd.cRainer Gerhards2007-08-021-6/+94
|
* added resumption logic to rsyslogd (but not yet any module)Rainer Gerhards2007-08-021-4/+18
|
* added tryResume() API to module interfaceRainer Gerhards2007-08-021-2/+11
|
* changed doAction() syslogd internal functions to allow for larger data &Rainer Gerhards2007-08-021-3/+10
| | | | | | state data - in preparation for actions that shall only be executed when previous action was suspended (the switchover case, e.g. for failed databases or TCP receivers)
* enabled functionality to have more than one action per selectorRainer Gerhards2007-08-021-26/+17
|
* moved cfsysline-calling into cfline() - now a unified interface againRainer Gerhards2007-08-021-18/+11
|
* enhanced syslogd memory structures to support multiple actions per selectorRainer Gerhards2007-08-021-111/+298
| | | | | however, this can not yet be configured do to missing config code for this case
* shuffeled code in cfline() to prepare for a better system of processing theRainer Gerhards2007-08-011-136/+235
| | | | selector_t linked list
* moved definition of selector_t to syslogd.c again, as this now no longer isRainer Gerhards2007-08-011-0/+42
| | | | a global structure
* moved action-describing data fields out of selector_t to its own structure;Rainer Gerhards2007-08-011-118/+199
| | | | | changed code to use this dynamically-allocated structure; this is in preparation for multiple actions per selector
* prepared code to move action-specifc selector_t data members to their ownRainer Gerhards2007-08-011-53/+74
| | | | structure
* - changed name of $Include to $IncludeConfig - sound better as it is moreRainer Gerhards2007-08-011-11/+1
| | | | explicit (we'll see where else we get includes for...)
* enhanced $Include to allow inclusion of a complete directoryRainer Gerhards2007-08-011-3/+83
|
* - applied a patch from mildew to prevent rsyslogd from freezing under heavyRainer Gerhards2007-08-011-2/+17
| | | | | load. This could happen when the queue was full. Now, we drop messages but rsyslogd remains active.
* added $include config directiveRainer Gerhards2007-08-011-6/+38
|
* - some more code cleanupRainer Gerhards2007-08-011-14/+14
| | | | - enhanced cfsysline interface to disallow chaining of command handlers
* - loading default values as done yesterday *is* clean (I've just reviewedRainer Gerhards2007-08-011-28/+9
| | | | | | the code again) - moved omfile-specifc global variables (for cfsysline settings) from syslogd.c to omfile.c
* - loading default values as done yesterday *is* clean (I've just reviewedRainer Gerhards2007-08-011-21/+8
| | | | | | the code again) - moved omfile-specifc global variables (for cfsysline settings) from syslogd.c to omfile.c
* - $ResetConfigVariables now also works vir the table-driven sytem. However,Rainer Gerhards2007-07-311-23/+19
| | | | | I need to fix an issue with loading default settings when syslogd is started or HUPed
* - all cfsysline directives now use new table-driven cfsysline system exceptRainer Gerhards2007-07-311-50/+33
| | | | for $ResetConfigVariables
* omfile.c now uses the new table-driven cfsysline systemRainer Gerhards2007-07-311-10/+20
|
* - got the basic code in place to create an in-memory list of cfsyslineRainer Gerhards2007-07-311-31/+2
| | | | handlers (omfile.c used as testing case) -- not yet in active code
* - added doCustomHdlr() to cfsysline.c - this completes implementingRainer Gerhards2007-07-311-9/+20
| | | | functions for canned handlers.
* moved debug printf code out of init() into its own functionRainer Gerhards2007-07-311-68/+77
|
* moved code to open config file into separate function processConfFile()Rainer Gerhards2007-07-311-90/+112
|
* - added macro to abort a function and go to finalizerRainer Gerhards2007-07-311-23/+34
| | | | - added output of config file line number when a parsing error occured
* added macro to consistently define iRetRainer Gerhards2007-07-311-5/+5
|
* - added doGetInt() to cfsysline.c and adapted dynaFileChaceSize handler toRainer Gerhards2007-07-311-36/+16
| | | | use it
* - moved the SetCCEscapeCharacter config file directive to cfsysline.c andRainer Gerhards2007-07-311-23/+1
| | | | also generalized it for further use while doing so
* - moved umask & file/dir creation mode parsing to cfsysline.cRainer Gerhards2007-07-311-75/+14
| | | | - added macro for easy and consistent check of iRet return value
* moved doGetGID() to cfsysline.cRainer Gerhards2007-07-311-35/+2
|
* fixed insufficient memory allocation in addAction() and its helpers. TheRainer Gerhards2007-07-301-22/+43
| | | | | | initial fix and idea was developed by mildew, I fine-tuned it a bit. Thanks a lot for the fix, I'd probably had pulled out my hair to find the bug...
* moved doBinaryOption() and doGetGUID() to cfsysline.cRainer Gerhards2007-07-301-116/+10
|
* - fixed a memory leak in syslogd/init() that happend when the config fileRainer Gerhards2007-07-301-2/+2
| | | | could not be read - thanks to varmojfekoj for the patch
* fixed a problem with shutting down the worker thread and freeing theRainer Gerhards2007-07-291-5/+14
| | | | | selector_t list - this caused messages to be lost, because the message queue was not properly drained before the selectors got destroyed.
* removed selector_t f references from output modulesRainer Gerhards2007-07-271-7/+7
|