Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Mar 2009 10:45:44 +0000
From:      Bruce Simpson <bms@incunabulum.net>
To:        python@FreeBSD.org
Subject:   Regarding HAVE_BROKEN_POSIX_SEMAPHORES
Message-ID:  <49B8E7D8.3010606@incunabulum.net>

next in thread | raw e-mail | index | archive | help
Hi,

If any of you can find the time, could you try applying rev 189736 of 
uipc_sem.c and patching Python to be built *without* defining 
HAVE_BROKEN_POSIX_SEMAPHORES in ${WRKSRC}/Python/thread_pthread.h ?

Please see the PR for a one-liner patch:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/127545

As you are probably aware, Python will try to emulate semaphores by 
using condition variables when USE_SEMAPHORES is not defined.

I believe this commit fixes the issue. It must have crept in when timed 
waits were implemented.

cheers
BMS

P.S. Help to debug 'multiprocessing' in Python 2.6 on FreeBSD would be 
very, very appreciated... I think I've traced it back to problems with 
the thread library -- specifically, fork()-ing from a thread seems to be 
broken.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49B8E7D8.3010606>