SHA256
1
0
forked from pool/coreutils
coreutils/coreutils-8.9-singlethreaded-sort.patch
2012-04-23 07:12:18 +00:00

16 lines
610 B
Diff

Index: src/sort.c
===================================================================
--- src/sort.c.orig 2012-04-16 13:17:12.342019601 +0200
+++ src/sort.c 2012-04-16 13:17:12.463016705 +0200
@@ -5288,8 +5288,8 @@ main (int argc, char **argv)
{
if (!nthreads)
{
- unsigned long int np = num_processors (NPROC_CURRENT_OVERRIDABLE);
- nthreads = MIN (np, DEFAULT_MAX_THREADS);
+ //unsigned long int np = num_processors (NPROC_CURRENT_OVERRIDABLE);
+ nthreads = 1; //MIN (np, DEFAULT_MAX_THREADS);
}
/* Avoid integer overflow later. */