summaryrefslogtreecommitdiffstats
path: root/external/rcclibtranslate.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2006-01-09 21:30:43 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2006-01-09 21:30:43 +0000
commitd480558fe8a2de12be4fcd9a1bdd1b71c233787b (patch)
tree78f730b1e865dc1b0d53e005bfe03cf834abeae3 /external/rcclibtranslate.c
parent690b7da850a2a241ca220b21938ec114c919d87b (diff)
downloadlibrcc-d480558fe8a2de12be4fcd9a1bdd1b71c233787b.tar.gz
librcc-d480558fe8a2de12be4fcd9a1bdd1b71c233787b.tar.bz2
librcc-d480558fe8a2de12be4fcd9a1bdd1b71c233787b.tar.xz
librcc-d480558fe8a2de12be4fcd9a1bdd1b71c233787b.zip
Fixed lockup on exit
- Fixed lockup on exit (Waiting rccexternal exit forever)
Diffstat (limited to 'external/rcclibtranslate.c')
-rw-r--r--external/rcclibtranslate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/external/rcclibtranslate.c b/external/rcclibtranslate.c
index 7a36814..24f44a2 100644
--- a/external/rcclibtranslate.c
+++ b/external/rcclibtranslate.c
@@ -166,7 +166,9 @@ void rccLibTranslateFree() {
if (session) {
if (thread) {
exitflag = 1;
+ g_mutex_lock(mutex);
g_cond_signal(cond);
+ g_mutex_unlock(mutex);
g_thread_join(thread);
thread = NULL;
exitflag = 0;