summaryrefslogtreecommitdiffstats
path: root/wtp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-27 14:46:23 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-27 14:46:23 +0000
commit7d8b1c293746d325db7f93d343a952e382da9ddd (patch)
tree11eb0c0bceb920fc7e89ecb1fe83bd89e46b9fd2 /wtp.c
parentea7fd874d7b294dacc909a0f8e9c51dcc639d879 (diff)
downloadrsyslog-7d8b1c293746d325db7f93d343a952e382da9ddd.tar.gz
rsyslog-7d8b1c293746d325db7f93d343a952e382da9ddd.tar.xz
rsyslog-7d8b1c293746d325db7f93d343a952e382da9ddd.zip
fixed a bug when shutting down DA queue
Diffstat (limited to 'wtp.c')
-rw-r--r--wtp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/wtp.c b/wtp.c
index 1e16de3b..3e5fb937 100644
--- a/wtp.c
+++ b/wtp.c
@@ -350,11 +350,11 @@ wtpCancelAll(wtp_t *pThis)
/* process any pending thread requests so that we know who actually is still running */
wtpProcessThrdChanges(pThis);
-RUNLOG_VAR("%d", pThis->iCurNumWrkThrd);
+//RUNLOG_VAR("%d", pThis->iCurNumWrkThrd);
/* go through all workers and cancel those that are active */
for(i = 0 ; i < pThis->iNumWorkerThreads ; ++i) {
// TODO: mutex lock!
-RUNLOG_VAR("%d", pThis->pWrkr[i]->tCurrCmd);
+//RUNLOG_VAR("%d", pThis->pWrkr[i]->tCurrCmd);
if(pThis->pWrkr[i]->tCurrCmd >= eWRKTHRD_TERMINATING) {
dbgprintf("%s: canceling worker thread %d\n", wtpGetDbgHdr(pThis), i);
pthread_cancel(pThis->pWrkr[i]->thrdID);
@@ -483,8 +483,6 @@ wtpStartWrkr(wtp_t *pThis, int bLockMutex)
BEGIN_MTX_PROTECTED_OPERATIONS(&pThis->mut, bLockMutex);
pThis->iCurNumWrkThrd++;
-dbgPrintAllDebugInfo();
-RUNLOG_VAR("%d", pThis->iCurNumWrkThrd);
/* find free spot in thread table. If we find at least one worker that is in initialization,
* we do NOT start a new one. Let's give the other one a chance, first.