shared memory & semaphores
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 ?