mirror of
https://github.com/oatpp/oatpp.git
synced 2025-03-07 17:56:47 +08:00
Fix. Fixed crash happening when debuggng via GDB.
This commit is contained in:
parent
bbbf7217bf
commit
9296862ea8
@ -152,7 +152,7 @@ void IOEventWorker::waitEvents() {
|
||||
struct epoll_event* outEvents = (struct epoll_event*)m_outEvents.get();
|
||||
auto eventsCount = epoll_wait(m_eventQueueHandle, outEvents, MAX_EVENTS, -1);
|
||||
|
||||
if(eventsCount < 0) {
|
||||
if((eventsCount < 0) && (errno != EINTR)) {
|
||||
OATPP_LOGE("[oatpp::async::worker::IOEventWorker::waitEvents()]", "Error. errno=%d", errno);
|
||||
throw std::runtime_error("[oatpp::async::worker::IOEventWorker::waitEvents()]: Error. Event loop failed.");
|
||||
}
|
||||
@ -264,4 +264,4 @@ void IOEventWorker::waitEvents() {
|
||||
|
||||
}}}
|
||||
|
||||
#endif // #ifdef OATPP_IO_EVENT_INTERFACE_EPOLL
|
||||
#endif // #ifdef OATPP_IO_EVENT_INTERFACE_EPOLL
|
||||
|
Loading…
Reference in New Issue
Block a user