I am having a strange thing happen under Neutrino v2.0 (on an RPX-lite
I want to share some data accross several forked processes. This is
I do something like:
struct my_struct *ptr = NULL;
fd = shm_open( “/some_name”, O_RDWR | O_CREAT, 0777 );
ftruncate( fd, sizeof( struct my_struct ) );
ptr = mmap( 0, sizeof( struct my_struct ), PROT_READ | PROT_WRITE,
fd, 0 );
Now this works ok sometimes, but other times, a subsequent shared memory
area (with a different name), get the same value assigned to ptr.
I seems to always be 0x80100000 if that is any clue.
Has anyone seen this before?