summaryrefslogtreecommitdiffstats
path: root/runtime/wti.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-10-27 10:36:53 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-10-27 10:36:53 +0100
commit553d1880d47b57b2f4e023c2017675f010afd9a0 (patch)
tree47903062ec593e4a9ac1e0f6e2fd8e543af56fc4 /runtime/wti.c
parent24cd5aee4720a98e321b69d2d9b5948348abd571 (diff)
downloadrsyslog-553d1880d47b57b2f4e023c2017675f010afd9a0.tar.gz
rsyslog-553d1880d47b57b2f4e023c2017675f010afd9a0.tar.xz
rsyslog-553d1880d47b57b2f4e023c2017675f010afd9a0.zip
some cleanup
Diffstat (limited to 'runtime/wti.c')
-rw-r--r--runtime/wti.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/wti.c b/runtime/wti.c
index aade156e..288670b6 100644
--- a/runtime/wti.c
+++ b/runtime/wti.c
@@ -119,7 +119,7 @@ wtiSetState(wti_t *pThis, bool bNewVal)
* Note that when waiting for the thread to terminate, we do a busy wait, checking
* progress every 10ms. It is very unlikely that we will ever cancel a thread
* and, if so, it will only happen at the end of the rsyslog run. So doing this
- * kind of not optimal wait is considered preferable over using condition variables.
+ * kind of non-optimal wait is considered preferable over using condition variables.
* rgerhards, 2008-02-26
*/
rsRetVal
@@ -134,7 +134,6 @@ wtiCancelThrd(wti_t *pThis)
pthread_cancel(pThis->thrdID);
/* now wait until the thread terminates... */
while(wtiGetState(pThis)) {
-//fprintf(stderr, "sleep loop for getState\n");
srSleep(0, 10000);
}
}
@@ -271,7 +270,6 @@ wtiWorker(wti_t *pThis)
/* first check if we are in shutdown process (but evaluate a bit later) */
terminateRet = wtpChkStopWrkr(pWtp, MUTEX_ALREADY_LOCKED);
-RUNLOG_VAR("%d", terminateRet);
if(terminateRet == RS_RET_TERMINATE_NOW) {
/* we now need to free the old batch */
localRet = pWtp->pfObjProcessed(pWtp->pUsr, pThis);