title: How can i share memory between parent-child process that free the memory automatically when they die
body: <p>I know about "mmap", but as far as i know if i want to share memory allocated by a parent process and accessed it by a client process i need to create a temporary file. </p>
  
  <p>But this file will continue to exist if the processes die. </p>
  
  <p>I was educated to never leave garbage behind. Both in real life and in programming.</p>
  
  <p>The solution should work on Linux, FreeBSD and Solaris.</p>