size of shm needs to be only sometimes checked when opening shared memory (#443)

This commit is contained in:
Dhanya Thattil
2022-05-16 12:27:48 +02:00
committed by GitHub
parent 88649a00b6
commit 8d6b8d66cc
6 changed files with 14 additions and 13 deletions

View File

@ -37,7 +37,7 @@ void freeSharedMemory(int detectorIndex, int moduleIndex) {
int numDetectors = 0;
if (detectorShm.exists()) {
detectorShm.openSharedMemory();
detectorShm.openSharedMemory(false);
numDetectors = detectorShm()->numberOfModules;
detectorShm.removeSharedMemory();
}