35 Commits

Author SHA1 Message Date
Rainer Gerhards
e005c5569c some minor cleanup, consolidated some code 2009-10-16 09:42:36 +02:00
Rainer Gerhards
61f643b080 enhanced immark to support non-cancel input module termination 2009-10-12 17:29:47 +02:00
Rainer Gerhards
924ceb305d Merge branch 'beta'
Conflicts:
	ChangeLog
	Makefile.am
	configure.ac
	doc/manual.html
2009-02-24 14:52:49 +01:00
Michael Biebl
1448e2486e make all cflags and libs variables uppercase
pkg-config uses uppercase for its _CFLAGS and _LIBS variable names.
So we follow suit and convert all _cflags and _libs variables to
uppercase for more consistency.
2009-02-24 13:09:44 +01:00
Rainer Gerhards
760e5f0d39 performance optimization: unnecessary time() calls during message parsing removed
thanks to David Lang for his excellent performance analysis
2008-09-16 11:56:07 +02:00
Rainer Gerhards
188e4f39fd Merge branch 'master' into beta 2008-07-15 16:11:05 +02:00
Rainer Gerhards
19864adc47 bugfix: mark messages were not correctly written to text log files
the markmessageinterval was not correctly propagated to all places
where it was needed. This resulted in rsyslog using the default
(20 minutes) in some code pathes, what looked to the user like mark
messages were never written.
2008-07-15 14:50:17 +02:00
Rainer Gerhards
3f6c73a8b7 added (internal) error codes to error messages
Also added redirector to web description of error codes
closes bug http://bugzilla.adiscon.com/show_bug.cgi?id=20
2008-06-27 12:52:45 +02:00
Michael Biebl
b6b53972e1 Remove .cvsignore files, add .gitignore.
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2008-06-11 17:03:47 +02:00
Rainer Gerhards
60309004df completed better modularity of runtime
- added the ability to specify an error log function for the
  runtime
- removed dependency of core runtime on dirty.h

Note that it is "better" modularity, not perfect. There is still
work to do, but I think we can for the time being proceed with
other things.
2008-04-17 12:46:57 +02:00
Rainer Gerhards
d9b0c77d3e some more cleanup
reduced dependencies, moved non-runtime files to its own directory except
for some whom's status is unclear
2008-04-16 15:27:53 +02:00
Rainer Gerhards
d7f33053da made everything compile with the new runtime subdirectory 2008-04-16 08:42:00 +02:00
Rainer Gerhards
4226f0dd48 begin building runtime convenience library (does not build!) 2008-04-15 16:28:44 +02:00
Rainer Gerhards
28dcc746bd applied patch from Michael Biebl to clean up build system 2008-03-06 07:39:32 +00:00
Rainer Gerhards
545346e697 - changed modules.c calling conventions to be interface-based
- moved module loader from conf.c to module.c, where it belongs
- made the necessary plumbing to auto-load library modules
- upgraded debug system to include iRet in function exit message
- changed module interface so that instances need only to be supported by
    output plugins (if we actually need them for input plugins, we can
    always add it again...)
- milestone: first implementation of library modules (but do not get
    unloaded on exit/hup so far)
2008-03-05 10:30:06 +00:00
Rainer Gerhards
bc7d8ccebb - changed module interface to support querying obj interface (stage work)
- changed module interface version, as the interface change is quite large
2008-03-04 10:27:45 +00:00
Rainer Gerhards
4e7e3efc69 fixed issue left over from debuging :( 2008-02-01 17:50:05 +00:00
Rainer Gerhards
68efb41220 - some cleanup
- implemented management function for worker thread 0 in order to change
    queue workers dynamically -- stage work
2008-01-10 17:33:21 +00:00
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
e27555c468 added --enable-mudflap ./configure option 2008-01-08 16:13:42 +00:00
Rainer Gerhards
fc761b9fdc applied Michael Biebl's patch to clean up the makefiles 2008-01-03 14:08:58 +00:00
Rainer Gerhards
6c6e9a0f3f moved bParseHostname and bIsParsed to msgFlags
This enables us to use more efficient calling conventions and
also helps us keep the on-disk structure of a msg object more
consistent in future releases.
2008-10-09 13:45:56 +02:00
Rainer Gerhards
2eb19201b3 - working on a potential race condition on the new input module interface.
See newsgroup posting for details on the issue:
    http://groups.google.com/group/comp.programming.threads/msg/330b9675f17
    a1ad6 I tried some mutex operations but came to the conclusion that
    this does not really help. So I have now switched to plain thread
    cancellation, which so far seems to be OK. Need more practical
    experience with other input modules to make a final decision. Thus I
    leave all code in and have just disabled the problematic code.
2007-12-20 08:54:51 +00:00
Rainer Gerhards
4501b6c4e1 code cleanups thanks to Michael Biebl 2007-12-18 14:44:39 +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
3e2bee073b command $ResetConfigVariables implemented for immark.c 2007-12-17 09:47:11 +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
0a8e339bfe tried to work-around zlib compile problem in immark.c on some platforms 2007-12-17 08:19:50 +00:00
Rainer Gerhards
e45bbf5c66 graceful termination now supported 2007-12-14 17:58:12 +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
119573816d begin work on on immark, the first input module. In the long term this will
lead to a complete rewrite of the input system
2007-12-14 10:42:30 +00:00