mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-03-03 13:42:40 +01:00
removed exit() in most places.. should just return EXIT_SUCCESS or failure instead of exiting, which was why the unique pointer needed a release (in this case, we removed pointer for consistency)
Some checks failed
CMake / Configure and build using cmake (push) Failing after 8s
Some checks failed
CMake / Configure and build using cmake (push) Failing after 8s
This commit is contained in:
@@ -527,7 +527,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
case 'v':
|
||||
std::cout << argv[0] << " Version: " << APIRECEIVER << std::endl;
|
||||
exit(EXIT_SUCCESS);
|
||||
return (EXIT_SUCCESS);
|
||||
|
||||
case 'n':
|
||||
try {
|
||||
@@ -564,17 +564,17 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
case 'h':
|
||||
std::cout << help_message << std::endl;
|
||||
exit(EXIT_SUCCESS);
|
||||
return (EXIT_SUCCESS);
|
||||
|
||||
default:
|
||||
LOG(sls::logERROR) << help_message;
|
||||
exit(EXIT_FAILURE);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
// remaining arguments
|
||||
if (optind < argc) {
|
||||
LOG(sls::logERROR) << "Invalid arguments\n" << help_message;
|
||||
exit(EXIT_FAILURE);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
LOG(sls::logINFOBLUE) << "Current Process [ Tid: " << gettid() << ']';
|
||||
|
||||
Reference in New Issue
Block a user