--- a/src/thread-pool.c +++ b/src/thread-pool.c @@ -97,7 +97,9 @@ sigdelset(&ss, SIGCHLD); pthread_sigmask(SIG_BLOCK, &ss, NULL); +#ifndef __ANDROID__ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); +#endif while (1) { struct default_work* work = dequeue_work();