mirror of https://github.com/Icinga/icinga2.git
parent
3f9ce38fd0
commit
5eb32efb05
|
@ -142,7 +142,15 @@ void SocketEvents::ThreadProc(void)
|
|||
VERIFY(ltref);
|
||||
}
|
||||
|
||||
desc.EventInterface->OnEvent(pfds[i].revents);
|
||||
try {
|
||||
desc.EventInterface->OnEvent(pfds[i].revents);
|
||||
} catch (const std::exception& ex) {
|
||||
Log(LogCritical, "SocketEvents")
|
||||
<< "Exception thrown in socket I/O handler:\n"
|
||||
<< DiagnosticInformation(ex);
|
||||
} catch (...) {
|
||||
Log(LogCritical, "SocketEvents", "Exception of unknown type thrown in socket I/O handler.");
|
||||
}
|
||||
}
|
||||
|
||||
delete [] pfds;
|
||||
|
|
Loading…
Reference in New Issue