Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-17-2011, 05:24 PM   #1
LQ Newbie
Registered: Feb 2011
Posts: 1

Rep: Reputation: 0
Reattaching to same address space on process restart

Hello Linux Gurus,
I have a question.

Suppose a process creates multiple shared
mem segments as part of it job.
Now is it always possible that on restart, that process can reattach to those previously created shared mem segments to the same virtual address spaces (returned on first time creation) ?

My intention is use pointers over shared memory.So on restart I want those pointers absolute value to remain valid.

Thanks a lot in advance.
Old 02-17-2011, 07:00 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 652Reputation: 652Reputation: 652Reputation: 652Reputation: 652Reputation: 652
I think you'd have to have the process spawn a child to perform the actual work, the parent would allocate the shared segments and deallocate them on exit - once you've lost a pointer there isn't any way to regain access to the memory afaik



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
Process Address Space in linux fedora 2.6 swaroopjoshi Linux - General 2 11-14-2006 02:37 AM
maximun address space for a process sarunya Linux - General 1 08-30-2005 11:56 AM
Per-process address space in x86_64? geezjan Red Hat 1 04-07-2005 05:57 AM
Per-process address space in RHEL x86_64? geezjan Linux - Software 0 04-06-2005 02:19 PM
accessing process address space linorg Programming 5 04-15-2004 02:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:30 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