20 Commits

Author SHA1 Message Date
Rainer Gerhards
1d7ba92156 better debug instrumentation --> input thread names used for reporting 2012-05-02 16:01:13 +02:00
Rainer Gerhards
0871d0a077 Merge branch 'v4-stable' into v5-stable
Conflicts:
	plugins/imfile/imfile.c
	plugins/omtesting/omtesting.c
	tcpsrv.c
	threads.c
2012-01-14 18:32:40 +01:00
Rainer Gerhards
0216053099 relicense parts under ASL 2.0
after carful check for copyright holder
2012-01-11 18:30:33 +01:00
Rainer Gerhards
38cb392672 replaced data type "bool" by "sbool" because this created some portability issues 2010-02-02 15:51:01 +01:00
Rainer Gerhards
e005c5569c some minor cleanup, consolidated some code 2009-10-16 09:42:36 +02:00
Rainer Gerhards
e53d91ce66 solved a recently introduced race during input thread shutdown
This was introduced when we re-enabled non-cancel thread termination
a few commits ago. This code has never been released as a tarball,
so that is no bugfix for a release but rather a WiP regression fix
and thus does not need to be mentioned in the ChangeLog.
2009-10-15 18:33:33 +02:00
Rainer Gerhards
7d92de155c internal: added ability to terminate input modules not via pthread_cancel...
... but an alternate approach via pthread_kill. This is somewhat safer as we
do not need to think about the cancel-safeness of all libraries we use.
However, not all inputs can easily supported, so this now is a feature
that can be requested by the input module (the most important ones
request it).
2009-07-20 18:36:30 +02:00
Rainer Gerhards
8f8f65abb6 moved files to the runtime
there are still some files left which could go into the
runtime, but I think we will delete most of them once we
are done with the full modularization.
2008-04-16 10:26:54 +02: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
29d9729292 moved queue code to its own module (finally) 2008-01-03 09:44:54 +00: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
653ec62b23 - implemented afterRun input module interface function
- implemented $klogSymbolsTwice config directive
2007-12-17 14:34:22 +00:00
Rainer Gerhards
18dbfe70d8 moved thread termination code out to threads.c 2007-12-17 09:06:23 +00:00
Rainer Gerhards
b0ee8aac88 created thread-class internal wrapper for calling user supplied thread main
function
2007-12-17 07:46:30 +00:00
Rainer Gerhards
e45bbf5c66 graceful termination now supported 2007-12-14 17:58:12 +00:00
Rainer Gerhards
8d186b3036 first rough version of input module thread termination 2007-12-14 17:34:54 +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
0c5e8a2f96 moved core threading helpers out of syslogd.c 2007-12-14 11:55:35 +00:00