commit 2f1d36273ac256723781be82088d6f95edbbe2e5
parent fb3209431387540c0f0bfb3a4aa057c6aa94fe94
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Thu, 28 May 2026 19:33:15 +0530
Fix #2138: Make issue on termux
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/nnn.c b/src/nnn.c
@@ -6930,6 +6930,7 @@ static void *du_worker_loop(void *p_data)
du_task task = {0};
#ifdef __linux__
+#ifndef __TERMUX__
/* Pin thread to specific CPU core for better cache locality and parallelism */
cpu_set_t cpuset;
CPU_ZERO(&cpuset);
@@ -6938,6 +6939,7 @@ static void *du_worker_loop(void *p_data)
CPU_SET(core % num_cpus, &cpuset);
pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset);
#endif
+#endif
for (;;) {
pthread_mutex_lock(&running_mutex);