This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: glibc-2.2.3 alphaev6 sysconf(_SC_NPROCESSORS_CONF) returns 0
- To: "Ken Whaley" <ken at believe dot com>
- Subject: Re: glibc-2.2.3 alphaev6 sysconf(_SC_NPROCESSORS_CONF) returns 0
- From: Philip Blundell <philb at gnu dot org>
- Date: Sat, 16 Jun 2001 10:32:22 +0100
- Cc: "GNU C Library" <libc-alpha at sourceware dot cygnus dot com>
- References: <NDBBKBAPHBIINMMNGLHEMEHECPAA.ken@believe.com>
>The routines in question are sysdeps/unix/sysv/linux/getsysstats.c:
>__get_nproc() and __get_nproc_conf(). I replaced "return result"
>with "return (result == 0) ? 1 : result;"
I don't think it's glibc's responsibility to work around incorrect data
returned by the kernel in this way. Fix your /proc/cpuinfo instead.
p.
PGP signature