mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-21 04:34:43 +02:00
parent
5e39fbbdf5
commit
334cbbb722
@ -624,6 +624,8 @@ void Application::SigAbrtHandler(int)
|
|||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
|
||||||
String fname = GetCrashReportFilename();
|
String fname = GetCrashReportFilename();
|
||||||
|
Utility::MkDir(Utility::DirName(fname), 0750);
|
||||||
|
|
||||||
std::ofstream ofs;
|
std::ofstream ofs;
|
||||||
ofs.open(fname.CStr());
|
ofs.open(fname.CStr());
|
||||||
|
|
||||||
@ -682,6 +684,8 @@ void Application::ExceptionHandler(void)
|
|||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
String fname = GetCrashReportFilename();
|
String fname = GetCrashReportFilename();
|
||||||
|
Utility::MkDir(Utility::DirName(fname), 0750);
|
||||||
|
|
||||||
std::ofstream ofs;
|
std::ofstream ofs;
|
||||||
ofs.open(fname.CStr());
|
ofs.open(fname.CStr());
|
||||||
|
|
||||||
@ -724,6 +728,8 @@ LONG CALLBACK Application::SEHUnhandledExceptionFilter(PEXCEPTION_POINTERS exi)
|
|||||||
l_InExceptionHandler = true;
|
l_InExceptionHandler = true;
|
||||||
|
|
||||||
String fname = GetCrashReportFilename();
|
String fname = GetCrashReportFilename();
|
||||||
|
Utility::MkDir(Utility::DirName(fname), 0750);
|
||||||
|
|
||||||
std::ofstream ofs;
|
std::ofstream ofs;
|
||||||
ofs.open(fname.CStr());
|
ofs.open(fname.CStr());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user