SHA256
1
0
forked from pool/coreutils
coreutils/coreutils-8.9-singlethreaded-sort.patch
2011-01-14 13:58:48 +00:00

16 lines
538 B
Diff

Index: src/sort.c
===================================================================
--- src/sort.c.orig
+++ src/sort.c
@@ -5263,8 +5263,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. */