diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-10-09 13:00:21 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-10-09 13:00:21 +0200 |
commit | d5a3d4b3a7151906a4eec59ec20fc7c90cefde8c (patch) | |
tree | d049e46bafaee23c8fc1310d30c55d69e409e024 /runtime | |
parent | 1ec858244efc4265fa5fa4c797c006a82ca52308 (diff) | |
parent | 39766091984b3669767e8742100876ebf8e3ea86 (diff) | |
download | rsyslog-d5a3d4b3a7151906a4eec59ec20fc7c90cefde8c.tar.gz rsyslog-d5a3d4b3a7151906a4eec59ec20fc7c90cefde8c.tar.bz2 rsyslog-d5a3d4b3a7151906a4eec59ec20fc7c90cefde8c.zip |
Merge branch 'v3-stable' into beta
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/queue.c b/runtime/queue.c index 00f811a0..0768cd77 100644 --- a/runtime/queue.c +++ b/runtime/queue.c @@ -2142,7 +2142,7 @@ queueEnqObj(queue_t *pThis, flowControl_t flowCtlType, void *pUsr) pthread_cond_wait(&pThis->belowFullDlyWtrMrk, pThis->mut); /* TODO error check? But what do then? */ } } else if(flowCtlType == eFLOWCTL_LIGHT_DELAY) { - while(pThis->iQueueSize >= pThis->iLightDlyMrk) { + if(pThis->iQueueSize >= pThis->iLightDlyMrk) { dbgoprint((obj_t*) pThis, "enqueueMsg: LightDelay mark reached for light delayble message - blocking a bit.\n"); timeoutComp(&t, 1000); /* 1000 millisconds = 1 second TODO: make configurable */ pthread_cond_timedwait(&pThis->belowLightDlyWtrMrk, pThis->mut, &t); /* TODO error check? But what do then? */ |