summaryrefslogtreecommitdiffstats
path: root/runtime/stpd/librelay.c
diff options
context:
space:
mode:
authortrz <trz>2005-07-14 20:58:22 +0000
committertrz <trz>2005-07-14 20:58:22 +0000
commit50875c433ed3de7d1f3ea5a630f5cc40bd981507 (patch)
treee29bb84c220003a5f66d8436233c162a5bf567c4 /runtime/stpd/librelay.c
parent7226dd0aa6d2538495a146e6b9a6a6f0f1d55752 (diff)
downloadsystemtap-steved-50875c433ed3de7d1f3ea5a630f5cc40bd981507.tar.gz
systemtap-steved-50875c433ed3de7d1f3ea5a630f5cc40bd981507.tar.xz
systemtap-steved-50875c433ed3de7d1f3ea5a630f5cc40bd981507.zip
fix unmatched mutex unlock
Diffstat (limited to 'runtime/stpd/librelay.c')
-rw-r--r--runtime/stpd/librelay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/stpd/librelay.c b/runtime/stpd/librelay.c
index d7b104d0..b32d8436 100644
--- a/runtime/stpd/librelay.c
+++ b/runtime/stpd/librelay.c
@@ -394,6 +394,7 @@ static void *reader_thread(void *data)
send_request(STP_BUF_INFO, &status[cpu].info,
sizeof(struct buf_info));
+ pthread_mutex_lock(&status[cpu].ready_mutex);
if (status[cpu].info.produced == status[cpu].info.consumed)
pthread_cond_wait(&status[cpu].ready_cond,
&status[cpu].ready_mutex);