I suggest that if you don't like Sys V sharing, you can use POSIX shared memory objects . They are not very popular, but are available at least on Linux and BSD.
Once you get fd with shm_open , you can immediately call shm_unlink . Then no other process can connect to the same shared memory, and you can mmap it several times. However, a small racing period is available.
source share