uti: Fix condition for pthread_join of mcexec threads

Change-Id: Iaeee91c197b84436f84ce4380768aa79e7f9419e
This commit is contained in:
Masamichi Takagi
2018-05-25 13:22:47 +09:00
parent e42c414454
commit 6b031c5472

View File

@ -1892,7 +1892,7 @@ join_all_threads()
do {
live_thread = 0;
for (tp = thread_data; tp; tp = tp->next) {
if (tp->joined && tp->detached)
if (tp->joined || tp->detached)
continue;
live_thread = 1;
pthread_join(tp->thread_id, NULL);