Fix incorrect return type for Application::Run

This commit is contained in:
Gunnar Beutner 2015-03-02 12:41:02 +01:00
parent f7ca0c5b52
commit b6ca140ee2
1 changed files with 2 additions and 6 deletions

View File

@ -689,8 +689,6 @@ void Application::InstallExceptionHandlers(void)
*/
int Application::Run(void)
{
int result;
#ifndef _WIN32
struct sigaction sa;
memset(&sa, 0, sizeof(sa));
@ -712,12 +710,10 @@ int Application::Run(void)
} catch (const std::exception&) {
Log(LogCritical, "Application")
<< "Cannot update PID file '" << GetPidPath() << "'. Aborting.";
return false;
return EXIT_FAILURE;
}
result = Main();
return result;
return Main();
}
/**