[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: sem_unlink() succeeded on unlinking ENAMETOOLONG Error.



Awad, Majid wrote:
> Bug description:  sem_unlink() succeeded on unlinking ENAMETOOLONG Error.
> 	Sem_open() shall fail when attempting to create a named semaphore
> with NAME_MAX+1.  When doing so, the semaphore doesn't get created, and when
> doing sem_unlink on un-created semaphore, sem_unlink reports success.

There is no bug in sem_unlink.  The problem is the name length you are
using.  glibc should normally avoid defining the NAME_MAX macro but this
would break lots of code.  For the shmfs the limit is not as low as you
test it with and if you'd increse the test size you would see that the
test finishes as you expect it.

-- 
--------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]