mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-30 00:54:30 +02:00
Fix incorrect return type for Application::Run
This commit is contained in:
parent
f7ca0c5b52
commit
b6ca140ee2
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user