I've got a program and installed in Linux .
and running .. well .
I have a question.
while process running , i could confirm share mamory allocated (with ipcs) ...
but after program ended ... shared memory deallocated .... ( ipcs shows NO shared memory )
I'd like to maintain shared memory after program ended .... How can I do ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
At the moment, the allocator is designed to
clean up the allocated shared memory after
the processes are shutdown. It is a
non-persistent shared memory allocator.
One easy method of allowing it to be
persistent is to just keep the originating
processing going. In effect, you create a
persistent process which maintains your
persistent shared memory.
I will look at various ways of adding
persistence more eloquently as I make other
changes.
Marc
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've got a program and installed in Linux .
and running .. well .
I have a question.
while process running , i could confirm share mamory allocated (with ipcs) ...
but after program ended ... shared memory deallocated .... ( ipcs shows NO shared memory )
I'd like to maintain shared memory after program ended .... How can I do ?
Yes,
At the moment, the allocator is designed to
clean up the allocated shared memory after
the processes are shutdown. It is a
non-persistent shared memory allocator.
One easy method of allowing it to be
persistent is to just keep the originating
processing going. In effect, you create a
persistent process which maintains your
persistent shared memory.
I will look at various ways of adding
persistence more eloquently as I make other
changes.
Marc