how to clean Unused semaphore??

How can i clean up my unused semaphore???

# ipcrm -s <semaphoreid>

how we can find out the unused semaphore in our system???

Use the "ipcs" command, which lists all IPC facilities on your system: semaphores, shared memory segments, etc.

I'd suggest reading the man page of "ipcs", which is pretty instructive and contains several useful examples of how use the vast array of options ipcs has.

I hope this helps.

bakunin

you can go for ipcs(interprocess communication facility status) with following option-q to clear queue-m to clear messages-s to clear semaphore