summaryrefslogtreecommitdiffstats
path: root/threads.c
Commit message (Collapse)AuthorAgeFilesLines
* replaced data type "bool" by "sbool" because this created some portability ↵Rainer Gerhards2010-02-021-1/+1
| | | | issues
* some minor cleanup, consolidated some codeRainer Gerhards2009-10-161-24/+0
|
* solved a recently introduced race during input thread shutdownRainer Gerhards2009-10-151-18/+62
| | | | | | | 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.
* re-enabled input thread termination handling that does avoid thread cancellationRainer Gerhards2009-10-121-5/+0
| | | | | | | | | | | | | | | ...where possible. This provides a more reliable mode of rsyslogd termination (canceling threads my result in not properly freed resouces and potential later hangs, even though we perform proper cancel handling in our code). This is part of an effort to reduce thread cnacellation as much as possible in rsyslog. NOTE: some comments indicated that there were problems with some code that has been re-activated. Testing did not show any issues. My current assumption is that these issues were related to some other code that has been removed/changed during the previous restructuring events. In any case, if there is a shutdown issue, one should carefully look at this change here!
* disabling new input termination interfaceRainer Gerhards2009-07-201-0/+6
| | | | | | a bug showed up during further testing. As this was a side-activity, I'll probably disable it for the time being and check what's going on somewhat later (I'll do it tomorrow if I can find it quickly)
* internal: added ability to terminate input modules not via pthread_cancel...Rainer Gerhards2009-07-201-5/+18
| | | | | | | | ... 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).
* minor things, mostly improved debug infoRainer Gerhards2008-09-181-1/+1
|
* Merge branch 'v3-stable' into betaRainer Gerhards2008-08-151-4/+8
|\ | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/rsyslog_ng_comparison.html
| * bugfix: imfile could cause a segfault upon rsyslogd HUP and terminationRainer Gerhards2008-08-141-4/+8
| | | | | | | | | | Thanks to lperr for an excellent bug report that helped detect this problem.
* | some more cleanupRainer Gerhards2008-04-161-1/+1
|/ | | | | reduced dependencies, moved non-runtime files to its own directory except for some whom's status is unclear
* worked some more on HP UX - got it to compile and receive UDP messagesRainer Gerhards2008-03-061-1/+0
|
* - removed no longer necessary signal from threads.cRainer Gerhards2008-02-181-26/+1
| | | | | - changed debug output request signal to SIGUSR2 (as originally intented), restored SIGUSR1 semantics
* redesigned queue to utilize helper classes for threading support. This isRainer Gerhards2008-01-241-4/+5
| | | | | | finally in a running state for regular (non disk-assisted) queues, with a minor nit at shutdown. So I can finally commit the work again to CVS...
* - some cleanupRainer Gerhards2008-01-101-8/+0
| | | | | - implemented management function for worker thread 0 in order to change queue workers dynamically -- stage work
* - fixed a bug that caused a segfault on startup when no $WorkDir directivev3-10-1aRainer Gerhards2008-01-101-20/+5
| | | | | | 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
* moved queue code to its own module (finally)Rainer Gerhards2008-01-031-88/+0
|
* some cleanupRainer Gerhards2007-12-271-1/+0
|
* moved udp net code - again, stage workRainer Gerhards2007-12-251-0/+2
|
* removed code no longer neededRainer Gerhards2007-12-211-1/+1
|
* fixed race conditionRainer Gerhards2007-12-201-0/+1
|
* - working on a potential race condition on the new input module interface.Rainer Gerhards2007-12-201-6/+27
| | | | | | | | | | 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.
* - implemented afterRun input module interface functionRainer Gerhards2007-12-171-3/+6
| | | | - implemented $klogSymbolsTwice config directive
* moved thread termination code out to threads.cRainer Gerhards2007-12-171-4/+42
|
* created thread-class internal wrapper for calling user supplied thread mainRainer Gerhards2007-12-171-4/+23
| | | | function
* graceful termination now supportedRainer Gerhards2007-12-141-1/+19
|
* first rough version of input module thread terminationRainer Gerhards2007-12-141-0/+14
|
* added thread activationRainer Gerhards2007-12-141-0/+20
|
* on the way to a real input module interface and threading class...Rainer Gerhards2007-12-141-1/+95
|
* moved core threading helpers out of syslogd.cRainer Gerhards2007-12-141-0/+123