Permalink
Browse files

FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF. Fix threading bug if workers finis…

…h work before pthread_join() is called on them.
  • Loading branch information...
1 parent 5d098c7 commit 2adbe44d033475eba57e311a4b7d002dc4604c09 @ggreer committed Sep 16, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/main.c
View
@@ -90,6 +90,7 @@ int main(int argc, char **argv) {
search_dir(root_ignores, paths[i], 0);
}
done_adding_files = TRUE;
+ pthread_cond_broadcast(&files_ready);
for (i = 0; i < workers_len; i++) {
if (pthread_join(workers[i], NULL)) {
log_err("pthread_join failed!");

0 comments on commit 2adbe44

Please sign in to comment.