On Wed, Nov 20, 2013 at 21:59, Stuart Henderson wrote:
> graphics/ilmbase hangs during autoconf; it runs something close to this

The diff I previously posted seems to fix this. At least, I could
repro with a snapshot and now I can't reproduce after installing the
new library.

I also spotted one more bug, but it shouldn't affect i386 or amd64.
The spinlock needs to be initialized in sem_open.

 
> #include <semaphore.h>
> int
> main()
> {
> sem_t mysem;
> 
> if (sem_init(&mysem, 1, 1) == 0) {
> if (sem_wait(&mysem) == 0) {
> sem_post(&mysem);
> sem_destroy(&mysem);
> }
> }
> }

Reply via email to