Menu

help me , please

Help
2002-07-15
2002-07-26
  • Nobody/Anonymous

    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 ?

     
    • Marc Bumble

      Marc Bumble - 2002-07-26

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.