summaryrefslogtreecommitdiffstats
path: root/wti.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-25 19:57:42 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-25 19:57:42 +0000
commit3d26cfc1854cdae96b62b536983b1239b32e9ec2 (patch)
tree0acaa9ed6f2264d05e98b19e7cc50aebe94db041 /wti.c
parent800db596dbfd0c9a657609fd4a666ebf60f25594 (diff)
downloadrsyslog-3d26cfc1854cdae96b62b536983b1239b32e9ec2.tar.gz
rsyslog-3d26cfc1854cdae96b62b536983b1239b32e9ec2.tar.xz
rsyslog-3d26cfc1854cdae96b62b536983b1239b32e9ec2.zip
fixed worker timeout which was accidently not set (and thus 0)
Diffstat (limited to 'wti.c')
-rw-r--r--wti.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wti.c b/wti.c
index 3f60afb2..23ad2415 100644
--- a/wti.c
+++ b/wti.c
@@ -419,6 +419,7 @@ dbgprintf("%s: start worker run, queue cmd currently %d\n", wtiGetDbgHdr(pThis),
d_pthread_cond_wait(pWtp->pcondBusy, pWtp->pmutUsr);
} else {
timeoutComp(&t, pWtp->toWrkShutdown);/* get absolute timeout */
+dbgprintf("timeout value is %ld\n", timeoutVal(&t));
if(d_pthread_cond_timedwait(pWtp->pcondBusy, pWtp->pmutUsr, &t) != 0) {
dbgprintf("%s: inactivity timeout, worker terminating...\n", wtiGetDbgHdr(pThis));
bInactivityTOOccured = 1; /* indicate we had a timeout */