summaryrefslogtreecommitdiffstats
path: root/runtime/wtp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-07 15:24:59 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-07 15:24:59 +0200
commita6c743e5ec5d213d3aa6404553fe65d59f065799 (patch)
tree8ec5ec4d77dea8a12280b965c2c5ba7f5051158f /runtime/wtp.c
parent7db9f96fe9ecb9f8e05d45cc888aa488d8aed85f (diff)
parent845c6f59b91e9988f856556cbb0e88e275e8e591 (diff)
downloadrsyslog-a6c743e5ec5d213d3aa6404553fe65d59f065799.tar.gz
rsyslog-a6c743e5ec5d213d3aa6404553fe65d59f065799.tar.bz2
rsyslog-a6c743e5ec5d213d3aa6404553fe65d59f065799.zip
Merge branch 'master' into nextmaster
Conflicts: ChangeLog
Diffstat (limited to 'runtime/wtp.c')
-rw-r--r--runtime/wtp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/wtp.c b/runtime/wtp.c
index 9f54a9ab..04eb974f 100644
--- a/runtime/wtp.c
+++ b/runtime/wtp.c
@@ -206,6 +206,14 @@ wtpProcessThrdChanges(wtp_t *pThis)
FINALIZE;
}
+ /* Note: there is a left-over potential race condition below:
+ * pThis->bThrdStateChanged may be re-set by another thread while
+ * we work on it and thus the loop may terminate too early. However,
+ * there are no really bad effects from that so I perfer - for this
+ * version - to live with the problem as is. Not a good idea to
+ * introduce that large change into the stable branch without very
+ * good reason. -- rgerhards, 2009-04-02
+ */
do {
/* reset the change marker */
pThis->bThrdStateChanged = 0;