Skip to content

Commit

Permalink
fix segfault if metadump client goes away
Browse files Browse the repository at this point in the history
missing else branch caused the first slab class to hit a closed client to
terminate, but didn't kill the run and the next slab class would try to print
to the missing client.
  • Loading branch information
dormando committed Dec 16, 2016
1 parent bd578fc commit 356ed3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crawler.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,9 @@ static void *item_crawler_thread(void *arg) {
lru_crawler_class_done(i);
continue;
}
} else if (active_crawler_mod.mod->needs_client) {
lru_crawler_class_done(i);
continue;
}
pthread_mutex_lock(&lru_locks[i]);
search = do_item_crawl_q((item *)&crawlers[i]);
Expand Down

0 comments on commit 356ed3f

Please sign in to comment.