summaryrefslogtreecommitdiffstats
path: root/syslogd.c
Commit message (Collapse)AuthorAgeFilesLines
* cosmetic changes - no code changeRainer Gerhards2007-11-271-3/+2
|
* moved syslog PRI code tables to msg.c as this is the only place where theyRainer Gerhards2007-11-271-44/+0
| | | | are still needed
* - added an identifier to command handler table - need to identify whichRainer Gerhards2007-11-211-2/+6
| | | | | | | | | | command handler entries need to be removed when module is unloaded - added support so that linkedlist key can be used for owner handle - enhanced llExecFunc to support deletion of list elements (on behalf of user function being called, slight interface change) - enhanced linkedlist class so that list elements can now be deleted based on the key value they have - created entry point so that CfSysLine handlers are removed on modExit()
* added an identifier to command handler table - need to identify whichRainer Gerhards2007-11-211-20/+20
| | | | command handler entries need to be removed when module is unloaded
* added new modExit() entry point to loadable module interfaceRainer Gerhards2007-11-211-4/+5
|
* applied gssapi patch from varmojfekoj - gss-api is now supportedRainer Gerhards2007-11-191-9/+62
|
* undid creation of a separate thread for the main loop -- this did not turnRainer Gerhards2007-10-171-19/+20
| | | | out to be needed or useful, so reduce complexity once again.
* changed the threading to include one extra thread that runs the mainloop.Rainer Gerhards2007-10-081-56/+96
| | | | | | | | | | This was done to work around a problem with malloc/free. Note that we are still running on two threads - the startup thread just waits for the new one to finish. For a description of the problem I try to work-around, please see: http://rgerhards.blogspot.com/2007/10/could-i-really-reproduce-bug.html Note that this is an experimental change, which will only stay if it proves to fix the segfault issue we are dealing with.
* applied patch provided by varmojfekoj to support building ommysql in itsRainer Gerhards2007-09-261-6/+0
| | | | own way (now also resides in a plugin subdirectory)
* applied contributed patch to improve repeated message processing (seeRainer Gerhards2007-09-251-1/+5
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=303341)
* more cleanup on thread-safe CRL functionsRainer Gerhards2007-09-251-1/+12
|
* changed ttyname() to ttyname_r() - not a real fix, as this part of the codeRainer Gerhards2007-09-251-3/+3
| | | | was single threaded, but better to be prepared for the future.
* - simplified code in shouldProcessThisMessage() for debug outputRainer Gerhards2007-09-241-23/+23
| | | | - changed strerror() calls to thread-safe strerror_r() variant
* code cleanupRainer Gerhards2007-09-201-55/+77
|
* split the function cvthname() for clarity. Also changed to using theRainer Gerhards2007-09-181-2/+2
| | | | rsRetVal status return system
* added code to handle situations where senders send us messages ending withRainer Gerhards2007-09-141-2/+18
| | | | | | a NUL character. It is now simply removed. This also caused trailing LF reduction to fail, when it was followed by such a NUL. This is now also handled.
* - checked -s/-l option and found that they work as expected - closed caseRainer Gerhards2007-09-111-2/+2
| | | | - added some comments in relation to -s/-l option
* fixed invalid dbgprintf() name - patch contained old name, I had forgottenRainer Gerhards2007-09-111-1/+3
| | | | to update it to new name.
* applied patch by varmojfekoj to change signal handling to the new sigactionRainer Gerhards2007-09-111-18/+67
| | | | API set (replacing the depreciated signal() calls and its friends.
* added commentsRainer Gerhards2007-09-101-1/+8
|
* removed misleading debug message (looked like an error, but was normalRainer Gerhards2007-09-071-1/+1
| | | | state)
* modified $ModLoad so that an absolute path may be specified as module nameRainer Gerhards2007-09-071-1/+5
| | | | (e.g. /rsyslog/ommysql.so)
* - added eCmdHdlrGetWord command handlerRainer Gerhards2007-09-071-3/+11
| | | | - added $ModDir config directive
* - changed part of the CStr interface so that better error tracking isRainer Gerhards2007-09-051-11/+6
| | | | | | | provided and the calling sequence is more intuitive (there were invalid calls based on a too-weired interface) - (hopefully) fixed some remaining bugs rooted in wrong use of the CStr class. These could lead to program abort.
* changed some calles to CStr class to their "safe" counterpart - they couldRainer Gerhards2007-09-041-13/+13
| | | | case program aborts if the object in question was an empty string
* applied patch form varmojfekoj to fix some mem leaks and a check to makeRainer Gerhards2007-09-041-2/+12
| | | | | sure that an empty string (NULL) returned by the CStr class does not cause a program abort.
* patches and docu update for 1.19.3v1-19-3Michael Meckelein2007-08-311-2/+14
|
* applied patches for release 1.19.2, update documentationv1-19-2Michael Meckelein2007-08-281-1/+1
|
* applied patches which will be released under 1.19.1, changed doc for 1.19.1v1-19-1Michael Meckelein2007-08-221-5/+9
| | | | release
* added some code to support the forward-compatibilty directive $ModLoadRainer Gerhards2007-08-141-2/+16
| | | | | MySQL - this is now internally translated to the right name Needs to be revisited, but is clean enough for now.
* - integrated patch from varmojfekoj to make the mysql module a loadable oneRainer Gerhards2007-08-141-17/+34
| | | | many thanks for the patch, MUCH appreciated
* added important TODO itemRainer Gerhards2007-08-091-0/+2
|
* added module unload functionality; rsyslogd now unloads modules on exit (ofRainer Gerhards2007-08-091-12/+16
| | | | | | course, with only statically linked modules, there is little current value in this - but it is made towards an upcoming dynaload plugin interface)
* some text and code cleanup in cflineParseTemplate() to match the changedRainer Gerhards2007-08-091-11/+7
| | | | design of selector handling
* fixed bug: default for $DropMsgsWithMaliciousDnsPTRRecords was not reset onRainer Gerhards2007-08-081-0/+1
| | | | up and on $ResetConfigVariables
* 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
|