mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 06:34:42 +02:00
Build fix for Windows.
This commit is contained in:
parent
5492d6fac3
commit
66f28ae02b
@ -274,6 +274,18 @@ void Application::SetMainThread(void)
|
|||||||
m_MainThreadID = boost::this_thread::get_id();
|
m_MainThreadID = boost::this_thread::get_id();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Displays a message that tells users what to do when they encounter a bug.
|
||||||
|
*/
|
||||||
|
void Application::DisplayBugMessage(void)
|
||||||
|
{
|
||||||
|
std::cerr << "***" << std::endl
|
||||||
|
<< "*** This would indicate a bug in Icinga 2. Please submit a bug report at https://dev.icinga.org/ and include" << std::endl
|
||||||
|
<< "*** this stack trace as well as any other information that might be useful in order to reproduce this problem." << std::endl
|
||||||
|
<< "***" << std::endl
|
||||||
|
<< std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
/**
|
/**
|
||||||
* Signal handler for SIGINT. Prepares the application for cleanly
|
* Signal handler for SIGINT. Prepares the application for cleanly
|
||||||
@ -298,18 +310,6 @@ void Application::SigIntHandler(int signum)
|
|||||||
sigaction(SIGINT, &sa, NULL);
|
sigaction(SIGINT, &sa, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Displays a message that tells users what to do when they encounter a bug.
|
|
||||||
*/
|
|
||||||
void Application::DisplayBugMessage(void)
|
|
||||||
{
|
|
||||||
std::cerr << "***" << std::endl
|
|
||||||
<< "*** This would indicate a bug in Icinga 2. Please submit a bug report at https://dev.icinga.org/ and include" << std::endl
|
|
||||||
<< "*** this stack trace as well as any other information that might be useful in order to reproduce this problem." << std::endl
|
|
||||||
<< "***" << std::endl
|
|
||||||
<< std::endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Signal handler for SIGABRT. Helps with debugging assert()s.
|
* Signal handler for SIGABRT. Helps with debugging assert()s.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user