Hi all…
I am having a strange thing happen under Neutrino v2.0 (on an RPX-lite
board).
I want to share some data accross several forked processes. This is
pretty standard.
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,
MAP_SHARED,
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?
Thanks.
Gord
Gordon McFadden
Westsoft Systems Inc
gmcfadden@westsoft-systems.com
http://www.westsoft-systems.com