commit | 60bf94ec27a04dfee53b16e9a7e40f1e599b6d00 | [log] [tgz] |
---|---|---|
author | Flemmard <flemmard@gmail.com> | Mon Mar 10 20:18:45 2014 +0100 |
committer | Gerrit Code Review <gerrit2@gerrit> | Mon Jun 30 19:01:33 2014 +0200 |
tree | 255845dae9703d57e194617b4ef2eb3d7db75d50 | |
parent | 4e2ec811ba1d90ba748ea8b2eda5bbea2897920c [diff] [blame] |
on stock android, pthread_cancel and phtread_setcancelstate doesn't exist Change-Id: Icbe281a301004ae2bcda4821a50fb4a41088e85d
diff --git a/fuse/fuse.c b/fuse/fuse.c index 34b11d4..588d445 100644 --- a/fuse/fuse.c +++ b/fuse/fuse.c
@@ -4579,7 +4579,11 @@ { if (lru_enabled(f)) { pthread_mutex_lock(&f->lock); +#ifndef ANDROID pthread_cancel(f->prune_thread); +#else + pthread_kill(f->prune_thread, SIGUSR1); +#endif pthread_mutex_unlock(&f->lock); pthread_join(f->prune_thread, NULL); }