Boost managed_shared_memory not working with C's mmap call on freeBSD
Hi All,
I am having two processes and they are sharing shared-memory.
- Process-1 (implemented in c++ and using
boost::interprocess::managed_shared_memory interface)
- Process-2 (implemented in c and using "she_open" and "mmap" interfaces)
This code was working fine on Linux But When I deployed same code on
FreeBSD. Process-2 (C lang based) is keep on throwing error in mmap. Error
is "Bad file Descriptor".
Please let me know:
1. Do I need to change the interface while moving from Linux to FreeBSD.
2. Is there any known issue with this design.
Code Snippet:
Process-1(c++):
obj = new boost::interprocess::managed_shared_memory(
boost::interprocess::open_or_create,
On Feb 27, 2018 5:39 AM, "vijay sharma via Boost"
participants (2)
-
Frank Mori Hess
-
vijay sharma