LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   shared memory & semaphores (http://www.linuxquestions.org/questions/programming-9/shared-memory-and-semaphores-485902/)

black_man 09-22-2006 01:10 AM

shared memory & semaphores
 
hi !

i maintain a coupple of solaris workstations on which some users connect remotely and use a graphical application.

the problem is that, after closing the application, the ipcs command shows some shared memory segments not associated with any existing process. also, some semaphores. in the case of the segments, i remove the orphan ones.

the output from ipcs shows the pid of the process that created the segment and the one that last accessed it. in the case of the semaphores, there is no such information.

how can i know which semaphore is orphan in order to remove it ?

thanks !


All times are GMT -5. The time now is 07:47 PM.