mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-04 18:45:52 +00:00
13 lines
284 B
Diff
13 lines
284 B
Diff
--- 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();
|