]> granicus.if.org Git - python/commit
Fix multiprocessing Semaphore's on netbsd5. SEM_VALUE_MAX is defined
authorGregory P. Smith <greg@mad-scientist.com>
Sun, 17 Oct 2010 02:14:36 +0000 (02:14 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sun, 17 Oct 2010 02:14:36 +0000 (02:14 +0000)
commit68e0135e4121b3e341aea7acf1cd017be74b50cf
tree07274405533df20a2d1337673d7c3a0602eae7c1
parented7916dd001d5d49b5be04a745c2f83826b27fe2
Fix multiprocessing Semaphore's on netbsd5. SEM_VALUE_MAX is defined
as (~0U) on NetBSD which was causing it to appear as -1 when used as
a signed int for _multprocessing.SemLock.SEM_VALUE_MAX.  This works
around the problem by substituting INT_MAX on systems where it appears
negative when used as an int.
Modules/_multiprocessing/multiprocessing.c