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 EdSchouten
Recipients EdSchouten
Date 2016-09-14.16:53:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473872030.91.0.717541080729.issue28156@psf.upfronthosting.co.za>
In-reply-to
Content
CloudABI (https://mail.python.org/pipermail/python-dev/2016-July/145708.html) does not provide getpid(). Though this may sound quite silly at first, there is quite a good reason for this. One of the things that CloudABI wants to achieve is making large scale (cluster/cloud) computing easier. In such an environment there is rarely a need for having machine-local unique process identifiers. They have to be globally unique and preferably not recycled.

POSIX requires that pid_t is a signed integer that must have a positive value. Most C compilers only provide full support for integers up to 64 bits in size. This means that CloudABI could only provide 63-bit process identifiers, which is far smaller than, say, a UUID. For this reason we've decided to omit getpid() altogether.

Attached is a patch that makes use of the already existing HAVE_GETPID definition in pyconfig.h to disable the os.getpid() function that is part of the posixmodule.
History
Date User Action Args
2016-09-14 16:53:50EdSchoutensetrecipients: + EdSchouten
2016-09-14 16:53:50EdSchoutensetmessageid: <1473872030.91.0.717541080729.issue28156@psf.upfronthosting.co.za>
2016-09-14 16:53:50EdSchoutenlinkissue28156 messages
2016-09-14 16:53:50EdSchoutencreate