uint16_t tcpInThreads{0};
uid_t uid{0};
gid_t gid{0};
- bool done{false};
+ bool shouldExit{false};
};
static std::optional<IXFRDistConfiguration> parseConfiguration(int argc, char** argv, FDMultiplexer& fdm)
if (g_vm.count("help") > 0) {
usage(desc);
+ configuration.shouldExit = true;
return configuration;
}
if (g_vm.count("version") > 0) {
cout<<"ixfrdist "<<VERSION<<endl;
+ configuration.shouldExit = true;
return configuration;
}
return EXIT_FAILURE;
}
- if (configuration->done) {
+ if (configuration->shouldExit) {
return EXIT_SUCCESS;
}
}