glibc-2.2.3 alphaev6 sysconf(_SC_NPROCESSORS_CONF) returns 0

Philip Blundell philb@gnu.org
Sat Jun 16 02:33:00 GMT 2001


>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.


-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.5 (GNU/Linux)
Comment: Exmh version 2.1.1 10/15/1999 (debian)

iD8DBQE7KyemVTLPJe9CT30RAu1+AJ4yTwx9MoVx55V5rb4dKaNo3338oQCdHekg
CgZ4oGx1RyVi40R0ZtOfBrU=
=i7fH
-----END PGP SIGNATURE-----


More information about the Libc-alpha mailing list