33 Commits

Author SHA1 Message Date
Rainer Gerhards
28c44e9a7b - fixed a bug that caused a segfault on startup when no $WorkDir directive
was specified in rsyslog.conf
- fixed a bug that caused a segfault on queues with types other than "disk"
- removed the now longer needed thread TermSyncTool
2008-01-10 14:27:26 +00:00
Rainer Gerhards
8a77bc82ac removed single-threading support for sending TCP messages; caused
simplyfication of output module interface as well as core syslog
    processing.
2007-12-20 14:34:40 +00:00
Rainer Gerhards
2583be4107 moved unix socket code to its own module (imuxsock) 2007-12-20 10:39:58 +00:00
Rainer Gerhards
653ec62b23 - implemented afterRun input module interface function
- implemented $klogSymbolsTwice config directive
2007-12-17 14:34:22 +00:00
Rainer Gerhards
9088ee3389 begun imklog, replacing klogd.c (finally we get rid of it...) 2007-12-17 11:52:10 +00:00
Rainer Gerhards
83c6a060be implemented $MarkMessagePeriod config directive 2007-12-17 09:42:03 +00:00
Rainer Gerhards
18dbfe70d8 moved thread termination code out to threads.c 2007-12-17 09:06:23 +00:00
Rainer Gerhards
e45bbf5c66 graceful termination now supported 2007-12-14 17:58:12 +00:00
Rainer Gerhards
3a209d5305 added thread activation 2007-12-14 17:15:35 +00:00
Rainer Gerhards
6c0c26dc96 on the way to a real input module interface and threading class... 2007-12-14 16:51:34 +00:00
Rainer Gerhards
6a80d9ee50 - begun to create input module interface and macros
- changed module interface to include function to query type
2007-12-14 14:41:09 +00:00
Rainer Gerhards
004229dda6 changed license to GPLv3 (for what is to become rsyslog v3) 2007-12-14 11:21:57 +00:00
Rainer Gerhards
3bb7ad8246 - added an identifier to command handler table - need to identify which
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()
2007-11-21 16:34:48 +00:00
Rainer Gerhards
8d606ea26d added an identifier to command handler table - need to identify which
command handler entries need to be removed when module is unloaded
2007-11-21 10:52:19 +00:00
Rainer Gerhards
214c7bd7f8 added new modExit() entry point to loadable module interface 2007-11-21 10:09:02 +00:00
Rainer Gerhards
e114e0d7e5 - removed compiler warnings in non-debug mode
- fixed a bug that caused the CStr class to not honor the parameter to
    return NULL on empty string - causes a mem leak and can create
    favourable environment for other bugs (as it leads to empty hostnames)
2007-09-11 15:39:00 +00:00
Rainer Gerhards
180bcdfa3f fixed a bug that in --enable-debug mode caused an assertion when the
discard action was used
2007-09-10 15:51:16 +00:00
Michael Meckelein
fb13c3a398 applied patches which will be released under 1.19.1, changed doc for 1.19.1
release
2007-08-22 10:49:32 +00:00
Rainer Gerhards
5197130228 - I found out that we finally have problems with the (somewhat recursive)
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.
2007-08-03 14:58:24 +00:00
Rainer Gerhards
adbf55ece6 - added CODE_STD_FINALIZERparseSelectorAct to module-generation macros
- restructered rsyslogd startup - moved startWorker() to a more appropriate
    place
- updated ommysql.c to fully support suspension/resumption by rule engine
2007-08-03 10:07:38 +00:00
Rainer Gerhards
2b2cdb5a6c added tryResume() API to module interface 2007-08-02 13:22:23 +00:00
Rainer Gerhards
48fd0e472a - changed modInit() interface to contain pointer to host-function query
method
2007-07-31 13:02:23 +00:00
Rainer Gerhards
9c20d0b4b4 added macro to consistently define iRet 2007-07-31 08:15:40 +00:00
Rainer Gerhards
29ab35e4a3 removed selector_t f references from output modules 2007-07-27 17:45:40 +00:00
Rainer Gerhards
1d96a98daf - added omsr object (objomsr.c, objomsr.h) - template request for output
modules
- changed doAction() interface
- templates and output string generation for doActon() is now fully
2007-07-27 16:55:40 +00:00
Rainer Gerhards
6e2c505768 - changed doAction() interface to contain the full message string
- f_iov and its handling has been removed
2007-07-26 12:47:09 +00:00
Rainer Gerhards
54669873b0 - implemented needUDPSocket() interface
- replaced (mis) use of f_prevcount in omfwd.c -> now data element in
    instance data is used for retry counting
- removed f->f_type from syslogd.c, omfwd.c
- removed f->f_file from omfwd.c, omfile.c
- f->f_flags is gone away
2007-07-26 12:07:23 +00:00
Rainer Gerhards
1b1229cd1e - changed doAction() interface to include module data pointer
- removed references to f_un from omusrmsg.c
- changed module template for parseSelectorAct() [code reduction,
    consitency]
2007-07-26 09:31:50 +00:00
Rainer Gerhards
c75d3b9348 - implemented onSelectReadyWrite() interface
- milestone reached: no more access to f->f_un in syslogd.c
2007-07-26 08:42:14 +00:00
Rainer Gerhards
d0a93ad442 introduced getWriteFDForSelect() module API 2007-07-25 16:50:12 +00:00
Rainer Gerhards
36f1b6d7f9 added new function dbgPrintInstInfo() to omod interface 2007-07-25 10:52:47 +00:00
Rainer Gerhards
a3192ac18e changed calling interface for freeInstance() - need to work with dual
buffers in order to change output modules one by one
2007-07-25 10:36:13 +00:00
Rainer Gerhards
4c69b80ca0 changed output modules to use a template-based code generation system for
standard entry points (implemented via preprocessor)
2007-07-25 10:25:38 +00:00