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.