This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: glibc-2.2.3 alphaev6 sysconf(_SC_NPROCESSORS_CONF) returns 0


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]