diff --git a/fairmq/shmem/Monitor.cxx b/fairmq/shmem/Monitor.cxx index 22462e21..65e0f595 100644 --- a/fairmq/shmem/Monitor.cxx +++ b/fairmq/shmem/Monitor.cxx @@ -574,7 +574,7 @@ std::vector> Monitor::Cleanup(const ShmId& shmIdT, string managementSegmentName("fmq_" + shmId + "_mng"); try { - bipc::managed_shared_memory managementSegment(bipc::open_only, managementSegmentName.c_str()); + bipc::managed_shared_memory managementSegment(bipc::open_read_only, managementSegmentName.c_str()); Uint16RegionInfoHashMap* shmRegions = managementSegment.find(bipc::unique_instance).first; if (shmRegions) {