I have one variable that is shared with 3 different process. i want parent to release shared memory before ending the program.
How do i achieve this?
Thank You.
I have one variable that is shared with 3 different process. i want parent to release shared memory before ending the program.
How do i achieve this?
Thank You.
Get each process to shm_unlink() the shared memory - once they have all done this, the shared memory will be released.
Programming and other random guff: cat /dev/thoughts > blogspot.com (previously prognix.blogspot.com)
~~~
"The largest-scale pattern in the history of Unix is this: when and where Unix has adhered most closely to open-source practices, it has prospered. Attempts to proprietarize it have invariably resulted in stagnation and decline."
Eric Raymond, The Art of Unix Programming