81 Commits

Author SHA1 Message Date
Rainer Gerhards
06387e5592 Merge branch 'v4-stable' into beta
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	tests/rt-init.c
2010-03-08 14:27:20 +01:00
Yann Droneaud
cd8c6abcc8 Includes "config.h" before any other header.
For consistency, ./configure generated "config.h" must be the first
header include through out the project.

Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2010-03-04 08:00:39 +01:00
trey
1fc8e4372b patch to make rsyslog compile under Apple OS X
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2010-02-03 14:55:35 +01:00
Rainer Gerhards
4e3589857a Merge branch 'v4-devel' into tmp
Conflicts:
	ChangeLog
	tests/Makefile.am
	tests/sndrcv_drvr.sh
	tools/syslogd.c
2009-11-20 18:51:25 +01:00
Rainer Gerhards
5b55ab75e2 debugondemand mode caused backgrounding to fail
This is close to a bug, but I'd consider the ability to background
in this mode a new feature...
2009-11-20 18:41:04 +01:00
Rainer Gerhards
384de6a442 Merge branch 'v4-beta'
Conflicts:
	ChangeLog
2009-11-10 12:53:04 +01:00
Rainer Gerhards
2b5e15d549 added a so-called "On Demand Debug" mode
in which debug output can be generated only after the process has started,
but not right from the beginning. This is assumed to be useful for
hard-to-find bugs.  Also improved the doc on the debug system.
2009-11-10 12:50:48 +01:00
Rainer Gerhards
e04e1b5002 enhanced test environment (including testbench)
support for enhancing probability of memory addressing failure by
using non-NULL default value for malloced memory (optional, only if
requested by configure option). This helps to track down some
otherwise undetected issues within the testbench and is expected
to be very useful in the future.
2009-10-22 11:33:38 +02:00
Rainer Gerhards
1e0e9e67f0 Merge branch 'david-master' into master
Conflicts:
	ChangeLog
	runtime/msg.c
2009-10-16 08:45:57 +02:00
Rainer Gerhards
4c14bfdc23 Merge branch 'v4-beta' into beta 2009-10-08 16:43:09 +02:00
Rainer Gerhards
ec56b763b8 bugfix in debug system and more instrumentation to find an issue
bugfix: debug string larger than 1K were improperly displayed. Max size
is now 32K, and if a string is even longer it is meaningful truncated.
2009-10-08 16:36:17 +02:00
Rainer Gerhards
50d9939148 bugfix: debug string larger than 1K were improperly displayed.
Max size is now 32K.
2009-10-08 16:29:15 +02:00
Rainer Gerhards
cf906392c3 Merge branch 'v4-devel'
Conflicts:
	runtime/debug.h
	runtime/stream.c
2009-07-08 15:23:25 +02:00
Rainer Gerhards
26227091fa fixed a bug introduced today that lead to an abort in queue disk mode 2009-07-07 17:18:51 +02:00
Rainer Gerhards
f53aa966e1 solved a race condition 2009-07-07 12:09:41 +02:00
Rainer Gerhards
9f45b80ea9 free last processed message in all cases
so far, the last processed message was only freed when the next
one was processed. This has been changed now. More precisely, a
better algorithm has been selected for the queue worker process, which
also involves less overhead than the previous one. The fix for
"free last processed message" as then more or less a side-effect
(easy to do) of the new algorithm.
2009-05-20 15:12:49 +02:00
Rainer Gerhards
bb79e96dc3 moving to a cleaner implementation of batches
... now that we know what we need from a theoretical POV.
2009-05-12 15:27:40 +02:00
Rainer Gerhards
eb807027af added O_CLOEXEC to open() calls
to make sure only the minimum number of file handles is left open
during a exec call. This is not a 100% solution, as there are also
some fopen() calls and, more importantly, file descriptors opened
by libraries. But it is better than nothing (and it was quick, at
least until we run into platform hell, what we will for sure ;)).
2009-04-02 15:12:57 +02:00
Rainer Gerhards
611b336449 Merge branch 'dapatch' 2009-03-25 17:21:56 +01:00
Rainer Gerhards
6ffb901081 bugfix: potential abort with DA queue after high watermark is reached
There exists a race condition that can lead to a segfault. Thanks
go to vbernetr, who performed the analysis and provided patch, which
I only tweaked a very little bit.
2009-03-25 17:20:51 +01:00
Rainer Gerhards
b711a34a07 disabled compile warnings caused by third-party libraries 2008-06-23 11:29:47 +02:00
Rainer Gerhards
055d4ffc2a fixed problem with module unload sequence 2008-04-29 15:36:22 +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
a10bc421ff resolved compile problem, e.g. on FreeBSD
I commented out some debug code that is only useful in some
testing scenarios and re-enabled the old code. This solved a FreeBSD
compile issue. Also, I fixed some other syntax error, which somehow
went into the tree (I am still puzzled about that, especially as some
have already and successfully build from that tree... anyhow ;)).
2008-12-08 19:55:27 +01:00
Rainer Gerhards
16970aad2e Merge branch 'helgrind' into perf 2008-09-26 18:40:39 +02:00
Rainer Gerhards
92c2e09d19 some more threading cleanup
- removed newly-introduced potential deadlock in debug system
- removed unnecessary pthread_cond_signal
- a bit general cleanup
2008-09-26 18:40:28 +02:00
Rainer Gerhards
96f312f94f Merge branch 'helgrind' into perf
Conflicts:

	runtime/debug.c
2008-09-26 16:22:15 +02:00
Rainer Gerhards
dc44f5a475 cleaned up internal debug system code and made it behave better in regard to multi-threading 2008-09-26 13:40:41 +02:00
Rainer Gerhards
9d8bb5629b Merge branch 'helgrind' into perf
Conflicts:

	ChangeLog
2008-09-18 12:45:44 +02:00
Rainer Gerhards
7b63cd6fed minor things, mostly improved debug info 2008-09-18 12:44:00 +02:00
Rainer Gerhards
cf8b0717e1 ignoring an (acceptable) race in debug system 2008-09-18 10:48:19 +02:00