Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-22-2006, 01:10 AM   #1
LQ Newbie
Registered: May 2003
Location: Iasi, Romania
Distribution: debian
Posts: 27

Rep: Reputation: 15
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 !


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
is shared memory expandable in memory size? Thinking Programming 4 08-16-2005 09:57 AM
Shared Memory/ Semaphores wildem Programming 3 06-20-2005 01:13 PM
Posix file based process shared semaphores dragonman Programming 9 05-25-2005 04:44 PM
About Shared Memory...? aegis_shiva Programming 1 08-25-2004 05:05 AM
shared memory and semaphores... socket9001 Programming 3 02-16-2004 11:18 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration