mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-16 23:07:13 +02: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