fix(shm): Fix incorrect parameters when mapping regions

This commit is contained in:
Alexey Rybalchenko 2022-09-05 22:46:38 +02:00 committed by Dennis Klein
parent 83ddbcef4c
commit 75e68e3e4d

View File

@ -540,7 +540,7 @@ class Manager
if (info.event == RegionEvent::created) { if (info.event == RegionEvent::created) {
RegionConfig cfg; RegionConfig cfg;
cfg.id = info.id; cfg.id = info.id;
cfg.creationFlags = info.id; cfg.creationFlags = regionInfo.fCreationFlags;
cfg.path = regionInfo.fPath.c_str(); cfg.path = regionInfo.fPath.c_str();
regionCfgs.emplace(info.id, cfg); regionCfgs.emplace(info.id, cfg);
// fill the ptr+size info after shmLock is released, to avoid constructing local region under it // fill the ptr+size info after shmLock is released, to avoid constructing local region under it