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 vstinner
Recipients brian.curtin, pitrou, serhiy.storchaka, tim.golden, vstinner
Date 2013-05-16.21:23:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368739438.87.0.628380015514.issue17931@psf.upfronthosting.co.za>
In-reply-to
Content
Oh, I just noticed the following check in pyport.h:

#if SIZEOF_PID_T > SIZEOF_LONG
#   error "Python doesn't support sizeof(pid_t) > sizeof(long)"
#endif

I don't understand this test, longobject.h contains:

#elif defined(SIZEOF_LONG_LONG) && SIZEOF_PID_T == SIZEOF_LONG_LONG
#define _Py_PARSE_PID "L"
#define PyLong_FromPid PyLong_FromLongLong
#define PyLong_AsPid PyLong_AsLongLong

I suppose that this path was never tested before.

Here is a new patch removing the check from pyport.h, longobject.h already fails if SIZEOF_PID_T value is not supported:

#else
#error "sizeof(pid_t) is neither sizeof(int), sizeof(long) or sizeof(long long)"
#endif /* SIZEOF_PID_T */
History
Date User Action Args
2013-05-16 21:23:58vstinnersetrecipients: + vstinner, pitrou, tim.golden, brian.curtin, serhiy.storchaka
2013-05-16 21:23:58vstinnersetmessageid: <1368739438.87.0.628380015514.issue17931@psf.upfronthosting.co.za>
2013-05-16 21:23:58vstinnerlinkissue17931 messages
2013-05-16 21:23:58vstinnercreate