12 Commits

Author SHA1 Message Date
Rainer Gerhards
2dd6d08b5d - fixed a bug that could cause invalid string handling via strerror_r
varmojfekoj provided the patch - many thanks!
2008-01-30 13:20:58 +00:00
Rainer Gerhards
d5feea5925 changed the threading to include one extra thread that runs the mainloop.
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.
2007-10-08 10:45:05 +00:00
Rainer Gerhards
a8ab44bc9f fixed a bug in cvthname() that lead to message loss if part of the source
hostname would have been dropped
2007-09-26 12:28:56 +00:00
Rainer Gerhards
b1ca6a351c - simplified code in shouldProcessThisMessage() for debug output
- changed strerror() calls to thread-safe strerror_r() variant
2007-09-24 13:32:25 +00:00
Rainer Gerhards
aebd480be7 split the function cvthname() for clarity. Also changed to using the
rsRetVal status return system
2007-09-18 13:05:05 +00:00
Rainer Gerhards
e8bdad7f8b - possibly found a bug in cvthname() that lead to a wrong size being
specified in a getnameinfo() API call - not sure, though, if it is
    "the" bug (actually, it looks like it isn't). - this is EXPERIMENTAL
- fixed a bug that caused signal handlers in cvthname() not to be restored
    when a malicious pointer record was detected and processing of the
    message been stopped for that reason (this should be really rare and
    can not be related to the segfault bug we are hunting).
2007-09-17 16:49:14 +00:00
Rainer Gerhards
0d39d623e7 - checked -s/-l option and found that they work as expected - closed case
- added some comments in relation to -s/-l option
2007-09-11 13:13:05 +00:00
Rainer Gerhards
3142387c19 applied patch by varmojfekoj to change signal handling to the new sigaction
API set (replacing the depreciated signal() calls and its friends.
2007-09-11 07:34:04 +00:00
Rainer Gerhards
d808cceebf minor typos 2007-09-11 07:12:41 +00:00
Michael Meckelein
f2511d3c61 changed rsyslog.h include order to solve debian sid zlib inlcude issue 2007-08-08 10:49:38 +00:00
Rainer Gerhards
fed254a29f changed function name dprintf() to dbgprintf() as it conflicts with the
clib
2007-08-08 08:20:06 +00:00
Rainer Gerhards
e38d58bc74 moved some more modules to their own file sets 2007-07-22 10:15:39 +00:00