mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-07 23:38:40 +01:00
size of shm needs to be only sometimes checked when opening shared memory (#443)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user