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

Thomas Girard thomas.g.girard at free.fr
Fri Aug 10 05:05:16 CDT 2007


Le vendredi 10 août 2007 à 11:48 +0200, Johnny Willemsen a écrit :
> Hi,
> 
> A short question, wouldn't it be the most safest to also start the test
> program with a sem_unlink? When them something has left from a previous run
> we do a cleanup first. 

Indeed, I believe that's safer. It's very unlikely that a user creates a
semaphore named "ace_semaphore_foo" that would be deleted by this
sem_unlink. You're right: someone trying to autoconfigure a fixed
version (i.e. with the sem_unlink after the sem_open) after having tried
a broken version, without rebooting or ipcrm'ing, would still be
affected by the problem.

Thomas



More information about the Ace-users mailing list