[Interprocess] Unable to list created shared memory via ipcs command
Hello,
I am a new user of the Boost Libraries. Currently, I tried the
Boost.Interprocess source library with an
example program which creates a shared memory segment and writes a vector
into the shared memory. A receiver process
attaches to the named shared memory segment and outputs the vector. This
all works has advertized. The one issue is that whenever I try to list
the shared memory segment via the ipcs -m command I do not see the shared
memory created from the sender program. This is the code snippet which
creates the shared memory: #include
Leo Giannelli wrote:
Hello,
The one issue is that whenever I try to list the shared memory segment via the ipcs -m command I do not see the shared memory created from the sender program. This is the code snippet which creates the shared memory:
IPCS is for System V shared memory and not for POSIX shared memory. In linux, shared memory filesystem is usually mounted in /dev/shm. See your system documentation or fstab for exact details Regards, Ion
participants (2)
-
Ion Gaztañaga
-
Leo Giannelli