summaryrefslogtreecommitdiffstats
path: root/threads.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-10 17:33:21 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-10 17:33:21 +0000
commit68efb41220a834870681f293481655ed47e7b197 (patch)
tree7d86bb0fa5c08a02079f406267dff0bf49795a80 /threads.c
parent41f386f6abeff1577812a58ccd1d416a5389a85b (diff)
downloadrsyslog-68efb41220a834870681f293481655ed47e7b197.tar.gz
rsyslog-68efb41220a834870681f293481655ed47e7b197.tar.xz
rsyslog-68efb41220a834870681f293481655ed47e7b197.zip
- some cleanup
- implemented management function for worker thread 0 in order to change queue workers dynamically -- stage work
Diffstat (limited to 'threads.c')
-rw-r--r--threads.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/threads.c b/threads.c
index 2166f4bb..8ce5515d 100644
--- a/threads.c
+++ b/threads.c
@@ -229,17 +229,9 @@ thrdSleep(thrdInfo_t *pThis, int iSeconds, int iuSeconds)
assert(pThis != NULL);
tvSelectTimeout.tv_sec = iSeconds;
tvSelectTimeout.tv_usec = iuSeconds; /* micro seconds */
- thrdUnblockTermination(pThis);
- /* there may be a race condition if pthread_kill() is called after unblock but
- * before the select() is setup. TODO: check and re-eval -- rgerhards, 2007-12-20
- */
select(1, NULL, NULL, NULL, &tvSelectTimeout);
if(pThis->bShallStop)
iRet = RS_RET_TERMINATE_NOW;
-#if 0 /* TODO: remove once we know we do not need the thrdBlockTermination() call -- rgerhards, 2007.12.25 */
- else
- thrdBlockTermination(pThis);
-#endif
return iRet;
}