A question on shared memory on Solaris 2.6.
The scenario is that I want to share data between a C-prog and a perl prog.
I can create a segment fine from perl using either the shmget or
IPC::ShareLite methods and a test C-prog is happily writing data to the
segment. Likewise I can get another C-prog to read the data written by the
test prog. What I can't seem to do is read the data from perl using either
shmread or IPC::ShareLite fetch().
The data being written to the shared seg is very simple:
An int (4 byte) header giving the number of records in the segment.
Each following record consists of 5 int fields.
I get an empty data string whichever method I use to read the data into
perl-world.
Any ideas gratefully received.
Rolf.