Updated TODO + workaround for the signal problem after logout

This commit is contained in:
emeric
2014-08-23 14:13:16 +02:00
parent f80f052d55
commit d018922847
5 changed files with 26 additions and 13 deletions
+7 -3
View File
@@ -26,10 +26,14 @@ int main(int argc, char* argv[])
if (argc > 1)
configFile = boost::filesystem::path(argv[1]);
if ( !boost::filesystem::exists(configFile)
|| !boost::filesystem::is_regular(configFile))
if ( !boost::filesystem::exists(configFile))
{
std::cerr << "Cannot open config file '" << configFile << "'" << std::endl;
std::cerr << "Config file '" << configFile << "' does not exist!" << std::endl;
return EXIT_FAILURE;
}
else if (!boost::filesystem::is_regular(configFile))
{
std::cerr << "Config file '" << configFile << "' is not regular!" << std::endl;
return EXIT_FAILURE;
}