This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients Yogesh.Chaudhari, dilettant, ezio.melotti, kushal.das, nedbat, neologix, pitrou, r.david.murray, serhiy.storchaka, trent, vstinner
Date 2013-05-13.19:50:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAH_1eM2Ct8-42m+Y7dur+S9aaH7CQJzTV5g-CCGxWTUqxVNeyA@mail.gmail.com>
In-reply-to <1368437160.42.0.0105279775356.issue17914@psf.upfronthosting.co.za>
Content
Just for giggles, here's the glibc default implementation on non Linux
platforms:
http://sourceware.org/git/?p=glibc.git;a=blob;f=misc/getsysstats.c;hb=HEAD
"""
int
__get_nprocs ()
{
  /* We don't know how to determine the number.  Simply return always 1.  */
  return 1;
}
"""

And on Linux, 1 is returned as a fallback when you don't have the
right /sys or /proc entry:
http://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/getsysstats.c

(The enum discussion enlighted me, endless discussions are so fun!)
History
Date User Action Args
2013-05-13 19:50:28neologixsetrecipients: + neologix, pitrou, vstinner, nedbat, trent, ezio.melotti, r.david.murray, serhiy.storchaka, kushal.das, dilettant, Yogesh.Chaudhari
2013-05-13 19:50:28neologixlinkissue17914 messages
2013-05-13 19:50:28neologixcreate