]> Savannah Git Hosting - gnulib.git/commit
nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
authorBruno Haible <bruno@clisp.org>
Mon, 10 Jun 2019 20:11:11 +0000 (22:11 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 10 Jun 2019 20:11:11 +0000 (22:11 +0200)
commit5dd3e60c55345c3c477492323a4395799e30e02b
treef9b8796304bf4c0f4b3c3878fa71a9c76d327574
parentb827d8a6fab0c25eaf0c59b94c5bbef00efeeae5
nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.

Reported by Nikita Ermakov <arei@altlinux.org> in
<https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.

* lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
ChangeLog
lib/nproc.c