Skip to content

Commit

Permalink
shm: open managament data as read only during cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rbx committed May 28, 2022
1 parent 00df117 commit d2aa3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fairmq/shmem/Monitor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ std::vector<std::pair<std::string, bool>> 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<Uint16RegionInfoHashMap>(bipc::unique_instance).first;
if (shmRegions) {
Expand Down

0 comments on commit d2aa3b6

Please sign in to comment.