A named semaphore(using semaphore.h
) is identified by a name of the form /somename;
that is, a null-terminated string of up to NAME_MAX-4 (i.e., 251) characters consisting of an initial slash, followed by one or more characters, none of which are slashes.
As the name corresponds to pathname in filesystem. Where this semaphore is located?
ipcs -s not showing named semaphore as ipcs is for System V semaphores.How to locate POSIX semaphores?