X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fa00c4e3bae8bf7127a5b43dbf68695c00ee2f94..acd32ffcdb319f162633c20e0202db3f8542998a:/src/unix/epolldispatcher.cpp diff --git a/src/unix/epolldispatcher.cpp b/src/unix/epolldispatcher.cpp index 75fa0909b4..d42c4fea3b 100644 --- a/src/unix/epolldispatcher.cpp +++ b/src/unix/epolldispatcher.cpp @@ -194,6 +194,10 @@ wxEpollDispatcher::DoPoll(epoll_event *events, int numEvents, int timeout) const bool wxEpollDispatcher::HasPending() const { epoll_event event; + + // NB: it's not really clear if epoll_wait() can return a number greater + // than the number of events passed to it but just in case it can, use + // >= instead of == here, see #10397 return DoPoll(&event, 1, 0) >= 1; }