Dev/verify shm (#1276)
Build on RHEL9 / build (push) Failing after 3m41s
Build on RHEL8 / build (push) Failing after 5m10s

* removed verify, update, fixed getUser to be a free function, generated commands, python bindings yet to do

* python bindings

* fixed tests

* minor

* minor

* format
This commit is contained in:
2025-08-23 10:23:27 +02:00
committed by GitHub
parent 15cbaa509e
commit fff5fa73be
18 changed files with 198 additions and 209 deletions
+16 -3
View File
@@ -50,14 +50,27 @@ int main(int argc, char *argv[]) {
action = slsDetectorDefs::HELP_ACTION;
else {
// Free shared memory should work also without a detector
// if we have an option for verify in the detector constructor
// we could avoid this but clutter the code
if (parser.command() == "free") {
if (parser.detector_id() != -1)
std::cout << "Cannot free shared memory of sub-detector\n";
else
sls::freeSharedMemory(parser.multi_id());
return 0;
return EXIT_SUCCESS;
}
// Get user details from shared memory should work also without a
// detector
if (parser.command() == "user") {
if (action == slsDetectorDefs::PUT_ACTION) {
std::cout << "Cannot set user details\n";
return EXIT_FAILURE;
}
if (parser.detector_id() != -1)
std::cout << "Cannot get user details of only a sub-detector\n";
else
std::cout << sls::getUserDetails(parser.multi_id())
<< std::endl;
return EXIT_SUCCESS;
}
}