summaryrefslogtreecommitdiffstats
path: root/threads.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-02-17 15:12:54 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-02-17 15:12:54 +0100
commit39406781e51c7305cb9f35f5f9fed9c10dea9ecd (patch)
treef4c6211d310ad9485b3b63a2db825517fc8cfab4 /threads.c
parentc550907139b9a13e1afd771f94f46a153fde08a2 (diff)
downloadrsyslog-39406781e51c7305cb9f35f5f9fed9c10dea9ecd.tar.gz
rsyslog-39406781e51c7305cb9f35f5f9fed9c10dea9ecd.tar.xz
rsyslog-39406781e51c7305cb9f35f5f9fed9c10dea9ecd.zip
bugfix: minor race condition in action.c - considered cosmetic
This is considered cosmetic as multiple threads tried to write exactly the same value into the same memory location without sync. The method has been changed so this can no longer happen.
Diffstat (limited to 'threads.c')
-rw-r--r--threads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/threads.c b/threads.c
index fcafce4b..11c9a1d8 100644
--- a/threads.c
+++ b/threads.c
@@ -196,8 +196,8 @@ static void* thrdStarter(void *arg)
* keep the thread debugger happer, it would not really be necessary with
* the logic we employ...)
*/
- pThis->bIsActive = 0;
d_pthread_mutex_lock(&pThis->mutThrd);
+ pThis->bIsActive = 0;
pthread_cond_signal(&pThis->condThrdTerm);
d_pthread_mutex_unlock(&pThis->mutThrd);