Dev/shm fix remove (#1279)
Some checks failed
Build on RHEL9 / build (push) Failing after 3m30s
Build on RHEL8 / build (push) Failing after 5m9s

* one doesnt need to open shared memory to call removesharedmemory, and calling hasMemoryvalid without opening will cause segfault (not used now, but could in the future)

* fix test on shm
This commit is contained in:
2025-08-25 16:20:19 +02:00
committed by GitHub
parent 9af571ea0e
commit 5b069d85a8
5 changed files with 36 additions and 20 deletions

View File

@@ -3396,11 +3396,11 @@ void Module::createSharedMemory(detectorType type, int det_id) {
// ensure shared memory was not created before
if (shm.exists()) {
throw SharedMemoryError(
"This shared memory " + shm.getName() +
" should have been deleted before! Free it to continue.");
LOG(logWARNING)
<< "This shared memory " + shm.getName() +
" should have been deleted before! Freeing it to continue.";
shm.removeSharedMemory();
}
shm.createSharedMemory();
initializeModuleStructure(type);
}