[ace-users] [autotools] POSIX named semaphore detection fix

Steve Huston shuston at riverace.com
Thu Aug 9 15:28:07 CDT 2007


Thanks, Thomas. I fixed this for the next version.

--
Steve Huston, Riverace Corporation
Would you like ACE to run great on your platform?
See http://www.riverace.com/sponsor.htm


> -----Original Message-----
> From: ace-users-bounces at cse.wustl.edu 
> [mailto:ace-users-bounces at cse.wustl.edu] On Behalf Of Thomas Girard
> Sent: Thursday, August 09, 2007 3:15 PM
> To: ace-users at cs.wustl.edu
> Subject: [ace-users] [autotools] POSIX named semaphore detection fix
> 
> 
> Hello,
> 
> Le mardi 24 juillet 2007 à 11:10 -0400, Caleb Epstein a écrit : 
> > I recently rebuilt ACE using the configure script and found that
the
> > resulting config.h had (mistakenly) decided that
ACE_OS::fast_memcpy
> > was faster than ::memcpy (it isn't, by a factor of about 3) and
that
> > my system had no SysV named semaphore operations (it does). 
> 
> Assuming you were referring to POSIX named semaphores, I have 
> been able
> to recreate the described error by running configure twice.
> 
> Indeed in the sem_open test, the created semaphore is not unlinked,
> hence the next time the test is run the call to:
>   sem_open ("ace_semaphore_foo", O_CREAT | O_EXCL, 0600, 1);
> fails because the named semaphore already exist.
> 
> The attached patch unlinks the created semaphore if everything goes
> fine. It can be applied to the 5.5.10 version or the SVN repo (as of
> r79302).
> 
> Regards,
> 
> Thomas
> 




More information about the Ace-users mailing list